Viewing 15 posts - 571 through 585 (of 1,124 total)
What errors are you getting when trying to log on to the server?
Have you enabled remote connections through surface area configuration?
Does some firewall is blocking the connection/port?
February 6, 2009 at 9:23 am
I think the OP wants to update products where suppliers for that product > 2. So, should the rows be filtered by COUNT(1) > 2?
February 6, 2009 at 9:13 am
...If you are using dynamic SQL, make sure to take care of SQL Injection attacks.
February 6, 2009 at 9:04 am
The function STATS_DATE gives the last updated statistics on an index...
SELECT name AS index_name,
STATS_DATE(object_id, index_id) AS statistics_update_date
FROM sys.indexes
February 6, 2009 at 8:59 am
Jeff Moden (2/6/2009)
Take another look guys... Ashy wants to return the rows that are second to the last for each account number... 😉
Actually, I can't read people's mind:D...Jeff, though, after...
February 6, 2009 at 8:52 am
Well, if I understood you correctly (its better if you can post some sample data & the table structure in script format), this is what you are looking for....
SELECTCOALESCE
(
BO.DDS...
February 6, 2009 at 8:45 am
Other way is to edit the table design in SSMS (don't save it) & just save the generated script, though I never tried this myself.
February 6, 2009 at 8:21 am
I am not entirely sure on what you exactly wanted, but may be you are looking for DB_NAME(), this gives the database name in which it runs.
February 6, 2009 at 8:15 am
...Not enough information, you should be more specific about what you need, what are the
inputs & what is the expected output. See this article on how to...
February 6, 2009 at 7:56 am
In simple terms, there isn't any equivalent to CONNECT BY of Oracle, but you can achieve the same functionality using CTE (Common Table Expressions)...
Here is an AdventureWorks example from BOOKS...
February 6, 2009 at 7:27 am
Do you see *.lock files in the directory "C:\Practice Files" when you running the linked server query? If so, then delete those files & try re-running the query.
February 5, 2009 at 2:17 am
John Dempsey (2/3/2009)
I believe you would want to use -3 to get the prior 3 months boundary.
Just an oversight from myside, thanks john for correcting it.
February 5, 2009 at 2:04 am
cbrassett (2/3/2009)
Well, it didn't display any error messages, so I suppose that it worked.
So, have you checked the linked server by accessing it?
SELECT * FROM North...Orders
February 3, 2009 at 6:39 am
Here is the solution...
DECLARE @strFullPath VARCHAR(MAX)
SELECT @strFullPath = 'E:\SomeFile.sql'
SELECT RIGHT( @strFullPath, CHARINDEX( '\', REVERSE( @strFullPath ) ) - 1 )
February 3, 2009 at 3:34 am
Can you re-create the linked server by using the following script?
DECLARE @strLinkedServer NVARCHAR(100)
SELECT@strLinkedServer = 'North'
EXECUTE master.dbo.sp_dropserver
@server = @strLinkedServer,
@droplogins = 'droplogins'
EXECUTEmaster.dbo.sp_addlinkedserver
@server = @strLinkedServer,
@provider = 'Microsoft.Jet.OLEDB.4.0',
@srvproduct = 'OLE DB...
February 3, 2009 at 3:11 am
Viewing 15 posts - 571 through 585 (of 1,124 total)