Posted by 좐군
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/297
Driver=SQLServer;Server=ServerNameHere;UID=UserIdHere;PWD=PasswordHere;Network=DBNETLIB.DLL;Encrypt=YES
Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=dbNameHere;Data Source=ServerNameHere;Use Encryption for Data=True
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/241
One of the more visible changes we made in connectivity space for SQL Server 2005 was enhancing error messages reported to the user in case of connection failures. I have seen several cases over the last several months, and in this post I would like to list some of them with the root cause that caused them. The cause may not be the only one triggering a particular error message, and there may be other error messages of interest.
This is a semi-random selection from real cases I investigated. Likely I will post another batch some time in the future, and I would be happy to see replies with additional errors, particularly if the root cause is unclear.
The examples are from various client stacks – ODBC or OLEDB from SQL Native Client or from managed SqlClient.
The exact formatting of the messages will depend on the application you use. Most of the examples below used OSQL, SQLCMD, or SQL Server Management Studio.
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.) (Microsoft SQL Server, Error: 10061)
(a) default instance:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
(b) named instance:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Shared Memory Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
[SQL Native Client]Unable to complete login process due to delay in opening server connection
A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
Possibly:
A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
[SQL Native Client]Shared Memory Provider: Timeout error [258].
[SQL
Native Client]Login timeout expired
[SQL Native Client]Unable to complete
login process due to delay in prelogin response
[SQL Native Client]Shared Memory Provider: Could not open a connection to SQL
Server [121].
[SQL Native Client]Login timeout expired
[SQL Native
Client]An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that under
the default settings SQL Server does not allow remote connections.
osql -E -S "<serverName> ,1433"
Login failed for user ''. The user
is not associated with a trusted SQL Server connection.
The server ERRORLOG/EventLog shows something similar to:
2005-08-11 12:46:04.29 Logon Error: 17806, Severity: 20, State:
2.
2005-08-11 12:46:04.29 Logon SSPI handshake failed with error code
0x8009030c while establishing a connection with integrated security; the
connection has been closed. [CLIENT: <IP address>]
2005-08-11
12:46:04.29 Logon Error: 18452, Severity: 14, State: 1.
2005-08-11
12:46:04.29 Logon Login failed for user ''. The user is not associated
with a trusted SQL Server connection. [CLIENT: <IP address>]
HResult 0x274C, Level 16, State 1
TCP Provider: A connection attempt
failed because the connected party did not properly respond after a period of
time, or established connection failed because connected host has failed to
respond.
Error: Microsoft SQL Native Client : An error has occurred while establishing
a connection to the server. When connecting to SQL Server 2005, this failure may
be caused by the fact that under the default settings SQL Server does not allow
remote connections..
Error: Microsoft SQL Native Client : Login timeout
expired.
HResult 0x274D, Level 16, State 1
TCP Provider: No connection could be
made because the target machine actively refused it.
Error: Microsoft SQL Native Client : An error has occurred while establishing
a connection to the server. When connecting to SQL Server 2005, this failure may
be caused by the fact that under the default settings SQL Server does not allow
remote connections..
Error: Microsoft SQL Native Client : Login timeout
expired.
출처 : http://blogs.msdn.com/sql_protocols/archive/2005/09/28/474698.aspx
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/240
| Simple search for a search term through all non-binary columns in
a single table or in every table of a database. You can search in four ways:
Contains, Starts with, Ends with and Equals. |
|
| Set all keywords to uppercase or lowercase letters. Custom
keywords can be added. Format all database objects to their proper case sensitive name. |
|
| Run selected or full window text on selected databases on the currently connected server. A new window is opened that contains one script for all databases. | |
| Find all occurrences of your search string in the execution plans
or in the results in datagrid mode. |
|
| CRUD stored procedure generation for tables based on fully customizable templates that you can change to suit your needs. |
|
| When opening a new query window you can specify a template that will be displayed. | ![]() |
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/222
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/189
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/188
Vicodin. Buy vicodin online. How l ong does vicodin stay in your system.
Buy vicodin online. Vicodin erowid. Vicodin. Vicodin overdose.
Percocet vs. lortabs. Percocet withdrawal symptoms.
Alprazolam synthesis. Alprazolam.
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/165
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/139
| 열 이름 | 데이터 형식 | 설명 |
|---|---|---|
| backup_set_id | int | 백업 세트를 식별하는 고유한 백업 세트 ID입니다. ID, 기본 키 |
| backup_set_uuid | uniqueidentifier | 백업 세트를 식별하는 고유한 백업 세트 ID입니다. |
| media_set_id | int | 백업 세트를 포함한 미디어 세트를 식별하는 고유한 미디어 세트 ID입니다. backupmediaset(media_set_id)를 참조합니다. |
| first_family_number | tinyint | 백업 세트가 시작되는 미디어의 패밀리 번호입니다. NULL일 수 있습니다. |
| first_media_number | smallint | 백업 세트가 시작되는 미디어의 미디어 번호입니다. NULL일 수 있습니다. |
| last_family_number | tinyint | 백업 세트가 끝나는 미디어의 패밀리 번호입니다. NULL일 수 있습니다. |
| last_media_number | smallint | 백업 세트가 끝나는 미디어의 미디어 번호입니다. NULL일 수 있습니다. |
| catalog_family_?number | tinyint | 백업 세트 디렉터리의 시작을 포함한 미디어의 패밀리 번호입니다. NULL일 수 있습니다. |
| catalog_media_number | smallint | 백업 세트 디렉터리의 시작을 포함한 미디어의 미디어 번호입니다. NULL일 수 있습니다. |
| position | int | 적절한 백업 세트 및 파일의 위치를 찾기 위해 복원 작업에 사용되는 백업 세트 위치입니다. NULL일 수 있습니다. 자세한 내용은 BACKUP(Transact-SQL)에서 FILE을 참조하십시오. |
| expiration_date | datetime | 백업 세트가 만료되는 날짜 및 시간입니다. NULL일 수 있습니다. |
| software_vendor_id | int | 백업 미디어 헤더를 기록하는 소프트웨어 공급업체의 ID입니다. NULL일 수 있습니다. |
| name | nvarchar(128) | 백업 세트의 이름입니다. NULL일 수 있습니다. |
| description | nvarchar(255) | 백업 세트에 관한 설명입니다. NULL일 수 있습니다. |
| user_name | nvarchar(128) | 백업 작업을 수행하는 사용자의 이름입니다. NULL일 수 있습니다. |
| software_major_version | tinyint | Microsoft SQL Server 주 버전 번호입니다. NULL일 수 있습니다. |
| software_minor_version | tinyint | SQL Server 부 버전 번호입니다. NULL일 수 있습니다. |
| software_build_version | smallint | SQL Server 빌드 번호입니다. NULL일 수 있습니다. |
| time_zone | smallint | 15분 간격으로 백업 작업이 수행되는 현지 시간과 UCT 간의 차이입니다. 값은 -48에서 +48까지 사용할 수 있으며 각 값을 포함합니다. 값 127은 알 수 없음을 의미합니다. 예를 들어 -20은 EST(동부 표준시) 또는 UTC 이후 5시간을 의미합니다. NULL일 수 있습니다. |
| mtf_minor_version | tinyint | Microsoft Tape Format의 부 버전 번호입니다. NULL일 수 있습니다. |
| first_lsn | numeric(25,0) | 백업 세트에서 첫 번째 또는 가장 오래된 로그 레코드의 로그 시퀀스 번호입니다. NULL일 수 있습니다. |
| last_lsn | numeric(25,0) | 백업 세트 다음에 오는 로그 레코드의 로그 시퀀스 번호입니다. NULL일 수 있습니다. |
| checkpoint_lsn | numeric(25,0) | 다시 실행이 시작되어야 하는 로그 레코드의 로그 시퀀스 번호입니다. NULL일 수 있습니다. |
| database_backup_lsn | numeric(25,0) | 가장 최근 전체 데이터베이스 백업의 로그 시퀀스 번호입니다. NULL일 수 있습니다. database_backup_lsn은 백업이 시작될 때 트리거되는 "검사점의 시작"입니다. 데이터베이스가 유휴 상태이고 복제가 구성되지 않은 경우 백업이 수행되면 이 LSN은 first_lsn과 일치하게 됩니다. |
| database_creation_date | datetime | 데이터베이스가 원래 생성된 날짜와 시간입니다. NULL일 수 있습니다. |
| backup_start_date | datetime | 백업 작업이 시작된 날짜와 시간입니다. NULL일 수 있습니다. |
| backup_finish_date | datetime | 백업 작업이 완료된 날짜와 시간입니다. NULL일 수 있습니다. |
| type | char(1) |
백업 유형입니다. 다음 값이 될 수 있습니다. D = 데이터베이스 I = 차등 데이터베이스 L = 로그 F = 파일 또는 파일 그룹 G =차등 파일 P = 부분 Q = 차등 부분 NULL일 수 있습니다. |
| sort_order | smallint | 백업 작업을 수행하는 서버의 정렬 순서입니다. NULL일 수 있습니다. 정렬 순서 및 데이터 정렬에 대한 자세한 내용은 데이터 정렬 작업을 참조하십시오. |
| code_page | smallint |
백업 작업을 수행하는 서버의 코드 페이지입니다.
NULL일 수 있습니다.
코드 페이지에 대한 자세한 내용은
|
| compatibility_level | tinyint |
데이터베이스에 대한 호환성 수준 설정입니다.
다음 값이 될 수 있습니다. 60 = SQL Server 6.0 65 = SQL Server 6.5 70 = SQL Server 7.0 80 = SQL Server 2000 90 = SQL Server 2005 NULL일 수 있습니다. 호환성 수준에 대한 자세한 내용은 sp_dbcmptlevel(Transact-SQL)을 참조하십시오. |
| database_version | int | 데이터베이스 버전 번호입니다. NULL일 수 있습니다. |
| backup_size | numeric(20,0) | 백업 세트의 크기(바이트)입니다. NULL일 수 있습니다. |
| database_name | nvarchar(128) | 백업 작업과 연관된 데이터베이스의 이름입니다. NULL일 수 있습니다. |
| server_name | nvarchar(128) | SQL Server 백업 작업을 실행하고 있는 서버의 이름입니다. NULL일 수 있습니다. |
| machine_name | nvarchar(128) | SQL Server를 실행 중인 컴퓨터의 이름입니다. NULL일 수 있습니다. |
| flags | int |
Microsoft SQL Server 2005에서는 flags 열이 사용되지 않고
대신 다음과 같은 bit 열이 사용됩니다.
|
| unicode_locale | int | 유니코드 로캘입니다. NULL일 수 있습니다. |
| unicode_compare_style | int | 유니코드 비교 스타일입니다. NULL일 수 있습니다. |
| collation_name | nvarchar(128) | 데이터 정렬 이름입니다. NULL일 수 있습니다. |
| Is_password_protected | bit |
백업 세트입니다.
다음과 같이 암호로 보호됩니다. 0 = 보호되지 않음 1 = 보호됨 |
| recovery_model | nvarchar(60) | 데이터베이스의 복구 모델입니다. FULL BULK-LOGGED SIMPLE |
| has_bulk_logged_data | bit | 1 = 백업이 대량 로그 데이터를 포함합니다. |
| is_snapshot | bit | 1 = SNAPSHOT 옵션을 사용하여 백업이 수행되었습니다. |
| is_readonly | bit | 1 = 백업 시 데이터베이스가 읽기 전용이었습니다. |
| is_single_user | bit | 1 = 백업 시 데이터베이스가 단일 사용자 모드였습니다. |
| has_backup_checksums | bit | 1 = 백업이 백업 체크섬을 포함합니다. |
| is_damaged | bit | 1 = 이 백업이 생성될 때 데이터베이스 손상이 감지되었습니다. 오류와 관계없이 백업 작업을 계속하도록 요청했습니다. |
| begins_log_chain | bit | 1 = 연속되는 로그 백업 체인에서 첫 번째입니다. 로그 체인은 데이터베이스가 생성된 후 또는 단순 복구 모델에서 전체 또는 대량 로그 복구 모델로 전환될 때 수행된 첫 번째 로그 백업에서 시작됩니다. |
| has_incomplete_metadata | bit |
1 = 메타데이터가 완전하지 않은 비상 로그 백업입니다.
자세한 내용은 |
| is_force_offline | bit | 1 = 백업이 수행될 때 NORECOVERY 옵션을 사용하여 데이터베이스가 오프라인 상태가 되었습니다. |
| is_copy_only | bit |
1 = 복사 전용 백업입니다. 자세한 내용은 |
| first_recovery_fork_guid | uniqueidentifier | 복구 분기 시작 지점의 ID입니다. RESTORE HEADERONLY의 FirstRecoveryForkID에 해당됩니다. 데이터 백업의 경우 first_recovery_fork_guid는 last_recovery_fork_guid와 같습니다. |
| last_recovery_fork_guid | uniqueidentifier | 복구 분기 끝 지점의 ID입니다. RESTORE HEADERONLY의 RecoveryForkID에 해당됩니다. 데이터 백업의 경우 first_recovery_fork_guid는 last_recovery_fork_guid와 같습니다. |
| fork_point_lsn | numeric(25,0) | first_recovery_fork_guid가 last_recovery_fork_guid와 같지 않으면 분기 지점의 로그 시퀀스 번호입니다. 그렇지 않으면 값은 NULL입니다. |
| database_guid | uniqueidentifier | 데이터베이스에 대한 고유 ID입니다. RESTORE HEADERONLY의 BindingID에 해당됩니다. 데이터베이스를 복원하면 새 값이 할당됩니다. |
| family_guid | uniqueidentifier | 생성 시 원래 데이터베이스의 고유 ID입니다. 이 값은 데이터베이스가 다른 이름으로 복원되는 경우에도 동일하게 유지됩니다. |
| differential_base_lsn | numeric(25,0) | 차등 백업에 대한 기본 LSN입니다. 단일 백업을 기반으로 하는 차등 백업의 경우 differential_base_lsn보다 크거나 같도록 LSN을 변경하면 차등 백업에 포함됩니다. 여러 백업을 기반으로 하는 차등 백업의 경우 값은 NULL이며 기본 LSN은 파일 수준에서 결정해야 합니다. backupfile(Transact-SQL)을 참조하십시오. 비차등 백업 유형의 경우 값은 항상 NULL입니다. |
| differential_base_guid | uniqueidentifier |
단일 백업을 기준으로 하는 차등 백업의 경우
값은 차등 기반의 고유 식별자입니다.
여러 백업을 기반으로 하는 차등 백업의 경우 값은 NULL이며
기본 차등 백업은 파일 수준에서 결정해야 합니다.
비차등 백업 유형의 경우 값은 NULL입니다. |
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/137
Posted by 좐군
Trackback URL : http://John.tobe30.com/tc/trackback/77
- 좐군
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |