Viewing 15 posts - 9,946 through 9,960 (of 13,469 total)
Jayant i think they are refering to the OPENROWSET command; you can substitute SELECT * FROM YOURTABLE where i'm using EXEC dbo.sp_Who for the command
SELECT *
...
February 23, 2010 at 8:31 am
Yep I'm still sure you can calculate the accrued holidays (vacationtime?) with a view instead.
dunno your math, you will need to be very specific: give us the create table ,...
February 23, 2010 at 6:46 am
i agree with john.arnott; if we know the reason, we can help;
for example, why not use a view?
you can easily create a view or function that returns a number, based...
February 22, 2010 at 8:10 pm
Adan, you might need to switch to dynamic SQL to do that I think; you need to get the data into a comma delomited list for the IN() statement to...
February 22, 2010 at 10:56 am
dheer (2/22/2010)
February 22, 2010 at 9:50 am
maybe something like this as a prototype?
trying to join the two linked tables together.
SELECT
o.ordernumber ,
o.status,
o1.orderdesc,
l.location
FROM orders o
INNER JOIN (SELECT
...
February 22, 2010 at 9:45 am
Linked servers are slow to join against.
here's the reason:
you are joining LINKEDSERVER.ORDERS.dbo.orders to your table.
the result is that the entire table LINKEDSERVER.ORDERS.dbo.orders gets pulled into the temp database,...
February 22, 2010 at 9:37 am
SQLRecon[/url] is free, and uses a number of different methods to find all the SQL servers on your network.
i've used it a lot of times, it does a lot more...
February 22, 2010 at 7:38 am
hey I'm glad you got it working the way you wanted! Congrats!
February 22, 2010 at 6:04 am
i thought select serverProperty('ComputerNamePhysicalNetBios') was supposed to give you the actual machine you are connected to in a clustered environment, am i wrong?
February 22, 2010 at 5:15 am
Roust this seems to be working on my sandbox; i was able to create a table with a pk and a uq, and it iterrupts the create index statement:
CREATE TRIGGER...
February 21, 2010 at 2:48 pm
copy paste error; your variable is missing the @:
set @vBackupPath ='\\l04\backup\RightFax_backup_'+@vDate+vTime+'.bak'
should be
set @vBackupPath ='\\l04\backup\RightFax_backup_'+@vDate+@vTime+'.bak'
February 21, 2010 at 8:38 am
ben i hope this helps;
this is the syntax i would use to update from a different table; it would be different if this is inside a trigger;
i *think* your current...
February 20, 2010 at 8:39 am
which registry key are you looking at?
on my machine, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion
has a value of CurrentVersion=10.0.1600.22
for the the FileVersion of sqlservr.exe, i had 2 on my machine, one for an 2005 express...
February 19, 2010 at 10:15 am
Viewing 15 posts - 9,946 through 9,960 (of 13,469 total)