반응형

요약 정리.

 

  • Oracle이 만듦, DBMS 소프트웨어의 일종
  • DBMS는 "데이터베이스(데이터 집합)을 관리 운영" 역할
  • 데이터베이스는 동시에 여러명이 접근 가능 (엑셀 파일은 다른사람이 쓰고있으면 Read Write 동시 불가)

동시에 여러명이 DBMS에 접근해서 필요한 데이터를 가져가거나 쓸 수 있음

  • DBMS 종류 및 대부분 자주 쓰이는 것들

국내 상위 사용

  • 데이터의 무결성(Integrity)을 위해 제약조건(Constraint)이 있음 (데이터가 손상없이 온전히 보존되어야 함)
  • 데이터의 독립성 (데이터베이스의 환경, 저장소 등이 바뀌어도 내부 데이터는 영향이 없어야 함)
  • 보안 (오직 허용된 사용자만의 제한된 권한으로 접근 가능 여부 컨트롤)
  • 여러 데이터의 중복을 최소화 시킴
  • DB기반으로 응용프로그램 제작이 쉬움(공통된 DB포맷을 사용하므로)
  • 백업 복원기능이 있어 깨지는 것을 방지
  • 파일시스템은 데이터가 너무 많으면 용량이 커지고 다루기 힘듦 -> 데이터베이스를 사용해야 되는 이유 (대량 데이터를 다루는데 용이)
  • 이 데이터베이스(DB)를 컨트롤 하기 위한 언어(language)가 "SQL언어" 이다.
  • 대부분 많이 사용하는 것은 Database Model은 관계형DBMS (Relational DBMS). (최근 MongoDB를 제외하고 전부)

관계형DBMS (테이블 형식이다)

  • SQL(Structural Query Language)은 표준SQL이 있고 각 회사별 강점을 살린 SQL이 있음. 그러나 모두 표준 SQL을 공유

출처:https://javarevisited.blogspot.com/2017/03/difference-between-sql-tsql-and-plsql.html#axzz7FZiU0FCp

  • 표준SQL은 표준이기 때문에 다른 SQL으로 이전할때 이식성이 좋음.
  • 파이썬과 마찬가지로 대화형(Interactive형) 언어
  • 교육용, 비상업용으로 MySQL자유롭게 사용가능, 상업용으로는 Oracle에게 라이선스를 취득해야 함!

 

 

 

 

 

반응형
반응형

아래와 같이 CSV파일을 Import할 때 아래와 같은 에러에 직면할 수 있다.

 

Received an invalid column length from the bcp client for colid N

Microsoft SQL Server, Error: 4815

원인은 입력데이터 초과이다.

메세지의 "Received an invalid column length from the bcp client for colid N" N부분은 해당 column을 뜻한다.

해당 열의 설정한 데이터양보다 실제 입력된 데이터가 더 많다는 것이다.

varchar(50) 으로 입력한 데이터를 모두 담을 수 없다는 것이다.

반응형

 

해결방법.

실제 입력된 데이터를 줄이던가, 아니면 데이터 입력 사이즈를 키운다.

결과

 

 

아래 자료 참고

http://eyeglazer.blogspot.com/2010/07/sqlbulkcopy-and-colid-error.html

 

SqlBulkCopy and the "colid" error

I thought there was a page explaining this somewhere out there on the Internet, but I can't find it anymore. So here's what I re-discovered....

eyeglazer.blogspot.com

 

반응형
반응형

 

CSV파일을 Import하다가 아래와 같은 에러가 발생하면

동일한 이름의 table이 중복되어있다는 것이다.

기존 것을 삭제하고 다시 만들거나, 아니면 이름을 바꿔서 만들어야 한다.

반응형

 

반응형
반응형

아래 링크에서 가져왔다.

https://www.w3schools.com/sql/sql_datatypes.asp

 

SQL Data Types for MySQL, SQL Server, and MS Access

SQL Data Types for MySQL, SQL Server, and MS Access The data type of a column defines what value the column can hold: integer, character, money, date and time, binary, and so on. SQL Data Types Each column in a database table is required to have a name and

www.w3schools.com

 

String Data Types (문자열 데이터 타입)

데이터 타입 설명

CHAR(size) 고정된 길이 문자열 (알파벳, 숫자, 특수문자 포함). The size parameter specifies the column length in characters - 기본값 1, 0~255 까지 입력 값
VARCHAR(size) A VARIABLE length string (can contain letters, numbers, and special characters). The size parameter specifies the maximum column length in characters - can be from 0 to 65535
BINARY(size) Equal to CHAR(), but stores binary byte strings. The size parameter specifies the column length in bytes. Default is 1
VARBINARY(size) Equal to VARCHAR(), but stores binary byte strings. The size parameter specifies the maximum column length in bytes.
TINYBLOB For BLOBs (Binary Large OBjects). Max length: 255 bytes
TINYTEXT Holds a string with a maximum length of 255 characters
TEXT(size) Holds a string with a maximum length of 65,535 bytes
BLOB(size) For BLOBs (Binary Large OBjects). Holds up to 65,535 bytes of data
MEDIUMTEXT Holds a string with a maximum length of 16,777,215 characters
MEDIUMBLOB For BLOBs (Binary Large OBjects). Holds up to 16,777,215 bytes of data
LONGTEXT Holds a string with a maximum length of 4,294,967,295 characters
LONGBLOB For BLOBs (Binary Large OBjects). Holds up to 4,294,967,295 bytes of data
ENUM(val1, val2, val3, ...) A string object that can have only one value, chosen from a list of possible values. You can list up to 65535 values in an ENUM list. If a value is inserted that is not in the list, a blank value will be inserted. The values are sorted in the order you enter them
SET(val1, val2, val3, ...) A string object that can have 0 or more values, chosen from a list of possible values. You can list up to 64 values in a SET list

Numeric Data Types (수치 데이터 타입)

Data typeDescription

BIT(size) A bit-value type. The number of bits per value is specified in size. The size parameter can hold a value from 1 to 64. The default value for size is 1.
TINYINT(size) A very small integer. Signed range is from -128 to 127. Unsigned range is from 0 to 255. The size parameter specifies the maximum display width (which is 255)
BOOL Zero is considered as false, nonzero values are considered as true.
BOOLEAN Equal to BOOL
SMALLINT(size) A small integer. Signed range is from -32768 to 32767. Unsigned range is from 0 to 65535. The size parameter specifies the maximum display width (which is 255)
MEDIUMINT(size) A medium integer. Signed range is from -8388608 to 8388607. Unsigned range is from 0 to 16777215. The size parameter specifies the maximum display width (which is 255)
INT(size) A medium integer. Signed range is from -2147483648 to 2147483647. Unsigned range is from 0 to 4294967295. The size parameter specifies the maximum display width (which is 255)
INTEGER(size) Equal to INT(size)
BIGINT(size) A large integer. Signed range is from -9223372036854775808 to 9223372036854775807. Unsigned range is from 0 to 18446744073709551615. The size parameter specifies the maximum display width (which is 255)
FLOAT(size, d) A floating point number. The total number of digits is specified in size. The number of digits after the decimal point is specified in the d parameter. This syntax is deprecated in MySQL 8.0.17, and it will be removed in future MySQL versions
FLOAT(p) A floating point number. MySQL uses the p value to determine whether to use FLOAT or DOUBLE for the resulting data type. If p is from 0 to 24, the data type becomes FLOAT(). If p is from 25 to 53, the data type becomes DOUBLE()
DOUBLE(size, d) A normal-size floating point number. The total number of digits is specified in size. The number of digits after the decimal point is specified in the d parameter
DOUBLE PRECISION(size, d)  
DECIMAL(size, d) An exact fixed-point number. The total number of digits is specified in size. The number of digits after the decimal point is specified in the d parameter. The maximum number for size is 65. The maximum number for d is 30. The default value for size is 10. The default value for d is 0.
DEC(size, d) Equal to DECIMAL(size,d)

Note: All the numeric data types may have an extra option: UNSIGNED or ZEROFILL. If you add the UNSIGNED option, MySQL disallows negative values for the column. If you add the ZEROFILL option, MySQL automatically also adds the UNSIGNED attribute to the column.

Date and Time Data Types (날짜 시간 데이터 타입)

Data typeDescription

DATE A date. Format: YYYY-MM-DD. The supported range is from '1000-01-01' to '9999-12-31'
DATETIME(fsp) A date and time combination. Format: YYYY-MM-DD hh:mm:ss. The supported range is from '1000-01-01 00:00:00' to '9999-12-31 23:59:59'. Adding DEFAULT and ON UPDATE in the column definition to get automatic initialization and updating to the current date and time
TIMESTAMP(fsp) A timestamp. TIMESTAMP values are stored as the number of seconds since the Unix epoch ('1970-01-01 00:00:00' UTC). Format: YYYY-MM-DD hh:mm:ss. The supported range is from '1970-01-01 00:00:01' UTC to '2038-01-09 03:14:07' UTC. Automatic initialization and updating to the current date and time can be specified using DEFAULT CURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP in the column definition
TIME(fsp) A time. Format: hh:mm:ss. The supported range is from '-838:59:59' to '838:59:59'
YEAR A year in four-digit format. Values allowed in four-digit format: 1901 to 2155, and 0000.
MySQL 8.0 does not support year in two-digit format.

 

============================

SQL Server Data Types

String Data Types (문자열 데이터 타입)

Data typeDescriptionMax sizeStorage

char(n) Fixed width character string 8,000 characters Defined width
varchar(n) Variable width character string 8,000 characters 2 bytes + number of chars
varchar(max) Variable width character string 1,073,741,824 characters 2 bytes + number of chars
text Variable width character string 2GB of text data 4 bytes + number of chars
nchar Fixed width Unicode string 4,000 characters Defined width x 2
nvarchar Variable width Unicode string 4,000 characters  
nvarchar(max) Variable width Unicode string 536,870,912 characters  
ntext Variable width Unicode string 2GB of text data  
binary(n) Fixed width binary string 8,000 bytes  
varbinary Variable width binary string 8,000 bytes  
varbinary(max) Variable width binary string 2GB  
image Variable width binary string 2GB  

Numeric Data Types (수치 데이터 타입)

Data typeDescriptionStorage

bit Integer that can be 0, 1, or NULL  
tinyint Allows whole numbers from 0 to 255 1 byte
smallint Allows whole numbers between -32,768 and 32,767 2 bytes
int Allows whole numbers between -2,147,483,648 and 2,147,483,647 4 bytes
bigint Allows whole numbers between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807 8 bytes
decimal(p,s) Fixed precision and scale numbers.Allows numbers from -10^38 +1 to 10^38 –1.
The p parameter indicates the maximum total number of digits that can be stored (both to the left and to the right of the decimal point). p must be a value from 1 to 38. Default is 18.
The s parameter indicates the maximum number of digits stored to the right of the decimal point. s must be a value from 0 to p. Default value is 0
5-17 bytes
numeric(p,s) Fixed precision and scale numbers.Allows numbers from -10^38 +1 to 10^38 –1.
The p parameter indicates the maximum total number of digits that can be stored (both to the left and to the right of the decimal point). p must be a value from 1 to 38. Default is 18.
The s parameter indicates the maximum number of digits stored to the right of the decimal point. s must be a value from 0 to p. Default value is 0
5-17 bytes
smallmoney Monetary data from -214,748.3648 to 214,748.3647 4 bytes
money Monetary data from -922,337,203,685,477.5808 to 922,337,203,685,477.5807 8 bytes
float(n) Floating precision number data from -1.79E + 308 to 1.79E + 308.The n parameter indicates whether the field should hold 4 or 8 bytes. float(24) holds a 4-byte field and float(53) holds an 8-byte field. Default value of n is 53. 4 or 8 bytes
real Floating precision number data from -3.40E + 38 to 3.40E + 38 4 bytes

Date and Time Data Types (날짜 시간 데이터 타입)

Data typeDescriptionStorage

datetime From January 1, 1753 to December 31, 9999 with an accuracy of 3.33 milliseconds 8 bytes
datetime2 From January 1, 0001 to December 31, 9999 with an accuracy of 100 nanoseconds 6-8 bytes
smalldatetime From January 1, 1900 to June 6, 2079 with an accuracy of 1 minute 4 bytes
date Store a date only. From January 1, 0001 to December 31, 9999 3 bytes
time Store a time only to an accuracy of 100 nanoseconds 3-5 bytes
datetimeoffset The same as datetime2 with the addition of a time zone offset 8-10 bytes
timestamp Stores a unique number that gets updated every time a row gets created or modified. The timestamp value is based upon an internal clock and does not correspond to real time. Each table may have only one timestamp variable  

Other Data Types (그 외 데이터 타입)

Data typeDescription

sql_variant Stores up to 8,000 bytes of data of various data types, except text, ntext, and timestamp
uniqueidentifier Stores a globally unique identifier (GUID)
xml Stores XML formatted data. Maximum 2GB
cursor Stores a reference to a cursor used for database operations
table Stores a result-set for later processing

MS Access Data Types (마이크로소프트 접근 데이터 타입)

Data typeDescriptionStorage

Text Use for text or combinations of text and numbers. 255 characters maximum  
Memo Memo is used for larger amounts of text. Stores up to 65,536 characters. Note: You cannot sort a memo field. However, they are searchable  
Byte Allows whole numbers from 0 to 255 1 byte
Integer Allows whole numbers between -32,768 and 32,767 2 bytes
Long Allows whole numbers between -2,147,483,648 and 2,147,483,647 4 bytes
Single Single precision floating-point. Will handle most decimals 4 bytes
Double Double precision floating-point. Will handle most decimals 8 bytes
Currency Use for currency. Holds up to 15 digits of whole dollars, plus 4 decimal places. Tip: You can choose which country's currency to use 8 bytes
AutoNumber AutoNumber fields automatically give each record its own number, usually starting at 1 4 bytes
Date/Time Use for dates and times 8 bytes
Yes/No A logical field can be displayed as Yes/No, True/False, or On/Off. In code, use the constants True and False (equivalent to -1 and 0). Note: Null values are not allowed in Yes/No fields 1 bit
Ole Object Can store pictures, audio, video, or other BLOBs (Binary Large OBjects) up to 1GB
Hyperlink Contain links to other files, including web pages  
Lookup Wizard Let you type a list of options, which can then be chosen from a drop-down list 4 bytes

 

 

 

반응형
반응형

db파일에 대한 정보를 아래 링크에서 확인.

https://fileinfo.com/extension/db

 

DB File Extension - What is a .db file and how do I open it?

Verified by FileInfo.com The FileInfo.com team has independently researched all file formats and software programs listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified. If you would like to s

fileinfo.com

 

DB파일은 아래 여러 타입으로 사용되고 있다.

 

< 모바일 데이터베이스 파일으로 사용 >

What is a DB file?

A DB file is a database file used on mobile devices such as Android, iOS, and Windows Phone 7 mobile phones. It is often used to store contacts and SMS information but may store any type of device or application data. DB files are commonly stored in an SQLite database format but may also be locked or encrypted so the user cannot see the data directly.

More Information

DB files on mobile phones generally are not meant to be opened or edited manually, since they are support files that include information for the device or for an application.

One example of a DB file is sms.db, an iOS support file that stores the user's text messages (located in the /private/var/mobile/Library/SMS/ directory on the device). Another example of a DB file is consolidated.db, a database file on iOS devices that automatically tracks location information.

 

DB파일 이란 무엇인가?

DB파일은 데이터베이스 파일의 일종으로 안드로이드, IOS, 윈도우 폰7과 같은 장치에서 사용한다. 이 파일은 연락처, 문자메세지 정보와 같은 파일을 저장하는데 사용되지만, App 정보 같은 형태도 저장할 수 있다. DB파일은 보통 SQLite의 데이터베이스 포맷으로 저장되어 암호화로 잠겨있어 바로 열어서 확인이 불가능하다.

 

좀더 말하자면,

휴대폰의 DB파일은은 보통 장치나 App등의 정보가 포함되는 보조적인 파일이며, 직접열어 수정이 불가능하다. 하나의 예를 들면, 사용자의 문자메세지를 저장하는 iOS에서 지원하는 sms.db파일이다.

(sms.db는 휴대폰의 /private/var/mobile/Library/SMS/ 디렉터리에 저장)

또다른 예는, 위치정보를 자동으로 추적해주는 iOS의 데이터베이스 파일 consolidated.db 파일이다.

 

아래프로그램으로 열 수 있음

반응형

< 일반 데이터베이스 파일으로 사용 >

What is a DB file?

A DB file is a generic database file that stores data in a structured format, typically with an arrangement of tables, table fields, field data types, and field values. It can be created by various database programs and exported into different formats, such as .CSV files. DB files may also be imported by multiple database programs and are used for gaming files as well.

 

DB파일 이란 무엇인가?

DB파일은 일반적으로 Table 배열, Table Field, Field data Type, Filed value로 구조화된 형식으로 저장된 데이터이다. 다양한 데이터베이스 프로그램으로 생성할 수 있으며, .CSV파일과 같은 다른 포맷으로 내보낼 수 있다. DB파일은 다양한 데이터베이스 프로그램으로부터 가져올 수 있으며, 게임파일으로도 사용된다.

 

아래 프로그램으로 열 수 있음.

 

< 윈도우의 Thumbnail Cache 파일으로 사용 >

What is a DB file?

Cache of thumbnail images that represent larger images in a Windows folder; stores small versions of images stored in a folder for quicker browsing; typically not seen unless the "Show invisible files" option is checked within the Windows view options.

 

More Information

Windows Thumbnail Cache files are named Thumbs.db by default. For more information about Windows Thumbs.db files, including how to prevent them from being created, follow these instructions.

Common DB Filenames

Thumbs.db - A hidden file created by Windows for storing thumbnails of images in a folder. It can be deleted, but Windows will remake the file.

 

DB파일 이란 무엇인가?

Thumbnail Image Cache란, Windows에서 큰 이미지로 저장된 파일을 작은 크기의 이미지 Cache로 저장해 빠르게 브라우징(탐색)을 시킬 수 있도록 도와준다. 보통 Windows의 보기 옵션에 "보이지 않는 파일 표시" 옵션을 끄면 보이지 않습니다.

추가적으로 말하자면,

Windows Thumbnail Cache파일은 기본으로 Thumbs.db로 저장됩니다.

공통적인 DB 파일이름

Thumbs.db - 폴더 내 이미지의 축소판이 저장된 Windows가 생성한 숨김파일. 삭제할 수 있지만 재생성된다.

 

아래 프로그램으로 열 수 있음.

그외 위 링크에 여러개를 볼 수 있다.

 

반응형
반응형

 

CSV파일로 저장된 테이블을 MS-SQL으로 바로 불러올 수 있다.

엑셀파일이 있다면, CSV파일로 저장해서 이 방식으로 MS-SQL 으로 가져올 수 있다.

 

1. 생성한 db 마우스우클릭 - Tasks - Import Flat File

 

2. Browse - 추가하고자 하는 csv파일 추가

 

 

3. 데이터 미리보기

 

 

4. 데이터 타입 및 Primary Key 등 입력 수정

 

5. 결과 sucess 확인

반응형

(결과) 새로고침을 누르면 해당 테이블이 추가됨을 알 수 있다.

 

 

 

참고 사이트

https://docs.microsoft.com/en-us/sql/relational-databases/import-export/import-flat-file-wizard?view=sql-server-ver15 

 

Import Flat File to SQL - SQL Server

Import Flat File Wizard is a simple way to copy data from a .csv or .txt file to a new database table. This article shows you how and when to use the wizard.

docs.microsoft.com

 

(발생할 수 있는 에러)

Microsoft SQL Server, Error: 4815 에러 발생 해결방법

https://ansan-survivor.tistory.com/754

 

[MS-SQL] SSMS Microsoft SQL Server, Error: 4815 에러 발생 해결방법

아래와 같이 CSV파일을 Import할 때 아래와 같은 에러에 직면할 수 있다. Received an invalid column length from the bcp client for colid N Microsoft SQL Server, Error: 4815 원인은 입력데이터 초과이..

ansan-survivor.tistory.com

Microsoft SQL Server, Error: 2714 에러 발생 해결방법
https://ansan-survivor.tistory.com/753

 

[MS-SQL] SSMS Microsoft SQL Server, Error: 2714 에러 발생 해결방법

CSV파일을 Import하다가 아래와 같은 에러가 발생하면 동일한 이름의 table이 중복되어있다는 것이다. 기존 것을 삭제하고 다시 만들거나, 아니면 이름을 바꿔서 만들어야 한다.

ansan-survivor.tistory.com

 

반응형
반응형

 

 

======<MS SQL 서버 PC에서 세팅>=========

 

<1. 계정 부여하기>

 

아래 포스팅 방법으로 부여받은 계정으로 외부에서 접속해본다.

https://ansan-survivor.tistory.com/233

 

[MS-SQL] SSMS(SQL Server Management Studio)이용하여 MS-SQL 계정 생성하기 / DB에 접근 권한 부여하기

1. 관리자명인 "sa" 로 로그인한다. 그리고 connect (계정은 관리자만 만들 수 있다.) 2. Security - Logins (우클릭) - New Login 3. 이름과 비밀번호를 입력하면 아래와 같이 계정이 생성된다. 4. 생성된 계..

ansan-survivor.tistory.com

 

이름 newUser 라고 부여받은 계정을 다른 PC에서 현재 PC의 SQL-Server로 접속한다.

현재 SQL-Server의 ip주소 확인 (동일 네트워크망에 존재)

외부 PC에서 SQL-Server로 접속하기 위해서는 SSMS를 사용한다.

 

<2. MS-SQL 사용 방화벽 개방하기>

 

포트를 여는 방법은 아래 포스팅 참고 한다.

https://ansan-survivor.tistory.com/408

 

윈도우10 특정 포트(port) 여는법. 윈도우 10 TCP UDP port 열기

특정 Port를 열기 1. 제어판 - Windows 방화벽 2. 고급 설정 3. 인바운드 규칙 - 새규칙... 4. 포트 클릭 후 - 프로토콜 및 포트 클릭 5. TCP 또는 UDP 선택 - 원하는 특정 포트번호 입력 6. 연결 허용 - 다..

ansan-survivor.tistory.com

MS-SQL은 1433포트를 사용함으로 이를 개방한다.

반응형

 

======<Client PC에서 접속>=========

 

<1. 접속 테스트>

접속이 잘 된다.

 

===============================================================

 

 

MS-SQL 접속방식은 아래와 같다.

 

    ※ MS-SQL에서 리눅스의 root계정같이 기본으로 관리자계정 이름이 "sa"로 생성된다.

    3가지 방법이 있다.

 

    (1) Loopback 방식    

    (2) 본인 내부 ip주소 (cmd ipconfig에서 본인 주소)

    (3) 외부 ip 포워딩 방식 (이방식이 중요하다, 서버를 외부 client들이 접속해서 db에 접근하기 때문)

                     Server name : Public IP주소, 포트번호 ( 윈도우에서 포트번호 delimeter로 쉼표(,)를 쓴다.

                     사전에 공유기를 통한 포트포워딩 작업이 필요하다.

 

반응형
반응형

<SSMS 설치 하기>

https://ansan-survivor.tistory.com/745

 

[MS-SQL] SSMS(SQL Server Management Studio) 설치하기. (Windows SQL을 쉽게 다루기 위해)

Microsoft는 MS-SQL을 관리하기 편하게 SSMS(SQL Server Management Studio)를 제공한다. 아래 링크를 통해 이를 다운로드 한다. https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-stud..

ansan-survivor.tistory.com

 

 

SQL로그인이 되기 위해서는 아래와 같은 설정을 해야 한다.

https://ansan-survivor.tistory.com/746

 

[MS-SQL] SSMS SQL Server 계정 로그인이 안될 때, 관리자 암호가 변경이 되지 않을 때. (SQL Server Management

SQL Server로그인시 위와 같은 에러가 발생하면 아래와 같은 사항을 확인한다. 1. 내 관리자 계정의 Security - SQL Server and Windows Authentication mode가 활성화 되어있는지 확인 2. SQL Server, SQL Serv..

ansan-survivor.tistory.com

 

0. 시작 - Microsoft SQL Server Management 실행

 

1. 관리자 계정으로 최초 접속 (Windows Authentication)

 

2. 만약 아래처럼 sa에 x가 있다면, 로그인이 가능하도록 허용한다.

 

2. SSMS의 관리자계정은 기본적으로 "sa"로 설정되어있다. 아래 방법으로 패스워드를 변경한다.

암호는 기본적으로 복잡하게 넣어야 한다.

(관리자 암호 간단하게 변경)

체크박사를 해제 하면 암호를 엄격하게 넣지 않아도 된다. (테스트 시에만)
완료 후 OK

 

 

접속 시도

    Authentication을 SQL Server Authentication으로 변경 후 로그인. 바뀐 암호로 접속이 되는 것을 볼 수 있다.

 

 

 

 

* 새로운 계정 추가하기 (반드시 관리자 sa 계정에서 해야 한다.)

 

1. Logins - 마우스우클릭 - New login

2. 로그인 계정 이름 입력 - SQL Server authentication 선택 - 패스워드 입력.

    (Enforce password policy를 해제해야 간단한 비번 입력 가능)

새 유저가 생성되었다.

 

반응형

 

새 유저로 접속 시도.

접속 성공

 

 

<SSMS으로 DB만들기>

https://ansan-survivor.tistory.com/229

 

[MS-SQL] SSMS (SQL Server Management Studio)를 이용해 DB만들기

MS-SQL서버가 있어야만 이를 사용할 수 있다. SSMS는 MS-SQL이 어떤 버전이던 똑같이 사용할 수 있다. (MS-SQL 서버 구축하는 방법 2014 버전) https://ansan-survivor.tistory.com/227 MS SQL (Microsoft SQL 201..

ansan-survivor.tistory.com

 

 

 

 

반응형
1234567

+ Recent posts