Viewing 15 posts - 1,051 through 1,065 (of 1,124 total)
Have you tried by executing the install script (instawdb.sql)...
Script for AdventureWorks OLTP should be located in C:\Program Files\Microsoft SQL Server\90\Tools\Samples\AdventureWorks OLTP
--Ramesh
October 16, 2007 at 7:12 am
You'll have to use CTE
--Ramesh
October 16, 2007 at 6:58 am
DECLARE @InitialNumber INT
DECLARE @OutputNumber INT
SET @InitialNumber = 9
SET @OutputNumber = ( CASE WHEN @InitialNumber > 0 THEN -@InitialNumber ELSE @InitialNumber END )
SELECT @InitialNumber AS Initial, @OutputNumber AS Final
Works like a...
--Ramesh
October 16, 2007 at 5:44 am
Check sys.server_principals
--Ramesh
October 16, 2007 at 3:13 am
I don't know how we can directly execute a script within another script?
But here is, one of the ways which i used to execute a list of files from...
--Ramesh
October 15, 2007 at 9:02 am
Be sure that the Total is unique for each location, otherwise you'll get into trouble..
Check here by adding one row as...
INSERT INTO @DerivedTable
SELECT 3, 931, 910
--Ramesh
October 15, 2007 at 8:44 am
You can use the RESTORE HEADERONLY statement to know exactly what kind of backup file is it...Check BackupType output column
RESTORE HEADERONLY FROM DISK = N'C:\DatabaseBackups\YourBackupFile.bak'
--Ramesh
October 11, 2007 at 7:55 am
DECLARE @FileName varchar(50),
@bcpCommand varchar(2100),
@Query varchar(2000)
SET @FileName = 't:\temp\test.txt'
SET @Query = 'bcp "Select...
--Ramesh
October 11, 2007 at 7:44 am
October 9, 2007 at 4:25 am
May be you can try this one......
SELECT T1.SalesPersonID, COUNT( * ) AS [Total Sales], T2.Date AS [Date Reached 100 Sales]
FROM Sales T1
LEFT JOIN ( SELECT SalesPersonsID, [Date], ROW_NUMBER()...
--Ramesh
October 8, 2007 at 2:37 am
I guess, DTS or SSIS would possibly be the best solutions to the scenario...
--Ramesh
October 6, 2007 at 7:09 am
This could be any of the following
1. The required network protocols are not enabled..
2. Remote Connections disabled
3. Windows firewall may be blocking the connection...
--Ramesh
October 6, 2007 at 6:59 am
I guess, this can surely will improve the performance as it uses the a single update to accomplish the task....
DECLARE @LastNumber INT
SET @LastNumber = 25
IF ( OBJECT_ID( 'tempdb..#tmpProducts' ) IS...
--Ramesh
October 6, 2007 at 6:44 am
You need to change your sql server's authentication mode to mixed mode.....
Go to Server Properties > Security ...Change the authentication mode to SQL Server & Windows...
--Ramesh
October 6, 2007 at 5:29 am
Viewing 15 posts - 1,051 through 1,065 (of 1,124 total)