Viewing 15 posts - 6,466 through 6,480 (of 7,187 total)
San
How are you going to choose which row(s) to eliminate and which one to keep? If you search this site for eliminating duplicates or something similar, you will find lots...
March 22, 2007 at 9:09 am
David
What are the exact commands you are using in your application and in Query Analyzer?
John
March 22, 2007 at 9:06 am
Craig
Yes, since all your values are negative, this will work:
UPDATE MyTable SET MyNum = MyNum * -1
WHERE <whatever>
But if you didn't know whether the values would be be positive...
March 22, 2007 at 9:01 am
John is right. It's as simple as this:
SELECT
TABLE_SCHEMA + '.' + TABLE_NAME
March 22, 2007 at 3:29 am
UPDATE t1
SET idcreated = t2.ID
FROM Table2 t2 INNER JOIN Table1 t1
ON t2.Description = t1.Description
John
March 21, 2007 at 9:13 am
Charbel
I've never tried doing anything like that before, so I don't know exactly how to do it. One way round it would be to edit your format file as described...
March 20, 2007 at 10:05 am
Eamon
You can use the sys.dm_exec_sessions view to find out what session(s) a given SID has open. Then simply put the session number(s) into DBCC INPUTBUFFER command.
John
March 20, 2007 at 9:26 am
Charbel
This is from the Microsoft website:
To create a format file that is easily modified, start the BCP
utility by using the following command line:
bcp <db_name>.<owner>.<table> out <data_file> /S<server>...
March 20, 2007 at 9:18 am
Charbel
If you read the BULK INSERT topic in Books Online, that should tell you everything you need to know.
John
March 20, 2007 at 7:02 am
Charbel
I think you can, but, depending how much data you are importing, you may find it easier to import into a staging table that has the same columns as the...
March 20, 2007 at 5:07 am
Garry.
No. SQL Server service packs are cumulative, so you only need to restore the most recent.
John
March 20, 2007 at 5:03 am
Sean
Something like this? Not tested, so syntax may not be perfect.
CREATE TABLE #Gaps (RowNo int IDENTITY(1,1) PRIMARY KEY CLUSTERED,
AccNo int, Blanks int)
INSERT INTO #Gaps (AccNo)...
March 19, 2007 at 8:54 am
John
Yes, you can script the creation of the articles. I imagine the creation itself would be fairly reliable, but what happens after that - who knows? I've never worked with...
March 19, 2007 at 5:57 am
Lowry
Don't know. Are there any triggers defined on the subscriber?
John
March 16, 2007 at 9:45 am
Viewing 15 posts - 6,466 through 6,480 (of 7,187 total)