Viewing 15 posts - 11,896 through 11,910 (of 13,469 total)
ok, since it appears the databases exist on the same server, you could do this:
Update DataBase1.dbo.MyTable2 m
SET m.field1 = ##MyTempTable.field1
FROM ##MyTempTable
WHERE m.field2 = ##MyTempTable.field2
Update DataBase2.dbo.MyTable2 m
SET m.field1 = ##MyTempTable.field1
FROM...
November 12, 2008 at 9:27 am
you can get a USB Terabyte and a half external drive for as little as 180 bux; whether you zip/rar an backup, or use a 3rd party tool, tha tmight...
November 12, 2008 at 7:12 am
if the table already exists:
INSERT INTO License_Audit(LicenseType,LICENSECOUNT,AUDITDATE)
SELECT 'MENU',COUNT(USER_ID) AS LICENSE_COUNT ,getdate()
FROM VMFG.dbo.LOGINS
WHERE PROGRAM_ID = 'MENU'
to create the table on the fly:
SELECT 'MENU' AS LicenseType,COUNT(USER_ID) AS LICENSE_COUNT ,getdate() AS AUDITDATE
INTO...
November 12, 2008 at 7:08 am
his query comes from a different system originally, not all dbms can use the UPDATE...FROM syntax, and instead use the style you see here....set somevalue = ([subquery referenncing the updating...
November 12, 2008 at 5:13 am
i think this part of the query is contributing to the slowness:
AND a.LineNum <= D_BomCalcTrans_t05_t.LineNum
because that can't be resolved as...
November 12, 2008 at 4:51 am
you are going to kick yourself...you did all the work, and are just missing the UPDATE ...FROM part:
Update MyTable2 m
SET m.field1 = ##MyTempTable.field1
FROM ##MyTempTable
WHERE m.field2 = ##MyTempTable.field2
November 11, 2008 at 10:05 am
yes you are right; and this is wierd;
if the OS is 2003, then it should install 2000 standard version; if it is saying personal edition, that is not right....
is it...
November 10, 2008 at 3:07 pm
in a nutshell, you can't.
you'll have to upgrade your operating system.... SQL 2000 standard or enterprise can only be installed on Server version operating systems...Win2000,2000 advanced server, 2003;
The cd gracefully...
November 10, 2008 at 2:59 pm
see if this will help;
here i'm just taking a static value and casting it to binary, then casting it back again.
i believe that is all you'll have to do; it...
November 10, 2008 at 12:35 pm
SQL Noob (11/5/2008)
November 10, 2008 at 12:04 pm
in another thread on a similar issue, where his 2005 server was slower than his 2000 with the same query, someone finally identified that in their case, they had seen...
November 10, 2008 at 10:09 am
you might need to review your web app for errors....
the identity is incremented even if there is an error in your code.
here's an example: the third insert will fail....the value...
November 10, 2008 at 8:18 am
David i don't know how useful it is, since for me it doesn't seem to be accurate;
I've updated statistics on a table for example, but this report give me results...
November 10, 2008 at 8:11 am
a lot of the information you ar elooking for(like IP address) is not stored in any database, so it can't really be done in TSQL without using something like xp_cmdshell...
November 7, 2008 at 11:31 am
i think if this query:
SELECT DISTINCT Cust_Num FROM fs_Unit
returns a null in the distinct collection, you'll get no results;
you might need
SELECT DISTINCT Cust_Num FROM fs_Unit WHERE Cust_Num IS NOT NULL
November 7, 2008 at 11:26 am
Viewing 15 posts - 11,896 through 11,910 (of 13,469 total)