SQL Server Forums – set @var = exec @sql
SQL Server Forums – set @var = exec @sql. go create table #temp (Heat varchar(30)) declare @sql varchar(100) declare @Heat varchar(30) select @sql […]
SQL Server Forums – set @var = exec @sql. go create table #temp (Heat varchar(30)) declare @sql varchar(100) declare @Heat varchar(30) select @sql […]
Microsoft SQL Server 2000 RDBMS 성능 조정 가이드
Declare @iWeek int –요일 : 1:일요일 2:월요일 3:화요일 4:수요일 5:목요일 6:금요일 7:토요일 Declare @NowDate DateTime — 오늘날짜 Declare @MON int –월 Declare @TUE int –화 […]
— To allow advanced options to be changed. EXEC sp_configure ‘show advanced options’, 1 GO — To update the currently configured value for advanced options. […]
Select top 100 NO,replace(LIMIT_N,CHAR(13)+CHAR(10),”)as LIMIT_N FROM [SALES] where patindex(‘%’+CHAR(13)+CHAR(10)+’%’,LIMIT_N) > 0 LIMIT_N : 컬럼명
[mssql 테이블 복사 쿼리 문구] select * into [생성될 테이블명] from [원본테이블명] (설명: 기본 모든 데이터까지 복사) select * into [생성될 테이블명] from [원본테이블명] where’1’=’2′ […]
select name, count(name) from testbl group by name; select count(distinct name) from testbl
select (Ceiling(CAST(‘10010’ as float)/100))*100 결과: 10100
1. 데이터 연결 속성에 SQL Native Client 만 있는 경우 (로컬컴에 sqlncli.msi 설치시) 여러버전 있음 다운로드 : https://support.microsoft.com/en-us/help/2726013/download-information-about-the-sql-server-native-client-drivers-that-a PROVIDER=MSDASQL;driver={SQL Native Client};server=1.222.333.444;uid=myID;pwd=myPassword;database=myDB 2. 데이터 연결 속성에 Native […]
Microsoft OLE DB Provider for SQL Server error ‘80040e14’ The query processor could not produce a query plan from the optimizer because a query cannot […]
Copyright © 2024 | WordPress Theme by MH Themes