Viewing 15 posts - 16 through 30 (of 397 total)
if csv file is correct, use bulk insert should be simplest.
August 24, 2005 at 3:05 am
Try add Test_Read role as member of db_denydatareader role.
August 22, 2005 at 11:12 pm
Try
SELECT C.ContactID,
E1.EmailAddress AS 'Primary', E1.EmailID AS 'PrimaryEmailID',
E2.EmailAddress AS 'Secondary', E2.EmailID AS 'SecondaryEmailID'
FROM Contact C
LEFT OUTER JOIN (ContactEmail CE1 INNER JOIN Email E1 ON CE1.EmailID = E1.EmailID AND CE1.EmailTypeID = 1)
...
August 22, 2005 at 11:02 pm
Use linked server or openquery.
Check BOL(book on line) for detail syntax and samples.
April 27, 2005 at 6:45 am
Use union.
select lastname, firstname from database1..tablename
union all
select lastname, firstname from database2..tablename
April 27, 2005 at 6:43 am
what tool to execute the script? Some posts here indicates that.
April 21, 2005 at 12:47 am
Assume you have chinese character installed in the machine.
April 20, 2005 at 11:21 pm
Try to save as the text file to unicode encoding before loading.
April 20, 2005 at 8:01 pm
try this
declare @tbname varchar(60)
set @tbname = 'tblTEST'+'_'+convert(varchar,getdate(),112)
select @tbname
exec('create table '+@tbname+'(c1 int)')
April 20, 2005 at 6:37 pm
Add column with null first
Add constraint with nocheck to exists with default value.
Update existing rows with default value using rowcount or what ever.
April 19, 2005 at 6:34 pm
Backup master first (precaution).
Stop the sql server.
Regedit to modify master db location.
lOCAL_MACHINE/SOFTWARE/MICROSOFT/MSSQLSERVER/MSSQLSERVER/PARAMETERS/SQLArg0 ~ SQLArg2
Restart the sql server
April 18, 2005 at 11:43 pm
One of ways
select [id],
sum(case when val1 is not null then val1 else null end) val1,
sum(case when val2 is not null then val2 else null end) val2,
sum(case when val3 is not...
April 18, 2005 at 5:59 pm
From MSDN lib.
Although not exactly a disk-storage issue, disk fragmentation slows the transfer rate and seek times of your disk system and you need to monitor for increasing disk fragmentation....
April 18, 2005 at 5:48 pm
Try
USE master
GO
EXEC sp_addlinkedserver
@server='anyname',
@srvproduct='',
@provider='SQLOLEDB',
@datasrc='(local)'
GO
EXEC sp_addlinkedsrvlogin 'anyname', 'false', 'sa', 'Admin', NULL
go
select * from anyname.master.dbo.sysobjects
April 18, 2005 at 7:56 am
Viewing 15 posts - 16 through 30 (of 397 total)