Viewing 15 posts - 46 through 60 (of 216 total)
can you ping the server?
can you establish a telnet session to the server ip on the sql port?
August 18, 2009 at 6:50 am
Dave - I get it now!
Couldn't see the wood for the trees, and thought it was a simple 'HAVING' answer!!
some sample data.....
declare @tblClient table (Clientid int, clientName varchar(10))
insert into @tblClient
...
August 18, 2009 at 5:42 am
Not directly - no you cannot use wildcards.
You can however pass a variable in to the xp_sendmail proc, so simply determine the filename, store it into a variable @filename
and...
August 18, 2009 at 4:59 am
Dave Ballantyne (8/18/2009)
SELECT COUNT(dbo.tblBackup.BackupID) AS Total, dbo.tblClient.ClientName
FROM dbo.tblClient INNER JOIN
dbo.tblBackup ON dbo.tblClient.ClientID = dbo.tblBackup.ClientID
WHERE (dbo.tblBackup.BackupDate BETWEEN '2009-08-17 19:00:00' AND '2009-08-18 09:50:00')
Having COUNT(dbo.tblBackup.BackupID) =0
However that will still not work ,...
August 18, 2009 at 4:36 am
Youve got a mixture of SQL authentication and Trusted connection in there. Not sure if that is your issue, but try changing the connection string to
"Integrated Security=SSPI;Persist Security Info=False;Network...
August 18, 2009 at 3:20 am
OK then
SELECT
tlkp_Defects.Defect_Title,
count(*)
FROM
tbl_Assembly_Hold_Defects
join tlkp_Defects on tbl_Assembly_Hold_Defects.Defect_ID = tlkp_Defects.Defect_ID
join tbl_Assembly_Holds on tbl_Assembly_Holds.TagNumber = tbl_Assembly_Hold_Defects.TagNumber
WHERE
tbl_Assembly_Holds.Record_Date...
August 17, 2009 at 9:43 am
I think I understand your requirements, try this..
SELECT
count(tlkp_Defects.Defect_Title)
tbl_Assembly_Holds.Record_Date
FROM
tbl_Assembly_Hold_Defects
join tlkp_Defects on tbl_Assembly_Hold_Defects.Defect_ID = tlkp_Defects.Defect_ID
join tbl_Assembly_Holds...
August 17, 2009 at 8:45 am
Another way is to add '-' (hyphens) , which turns the date into a USA format date (style 10)
'081709' becomes '08-17-09'
then convert that to a varchar using ISO datetime format...
August 17, 2009 at 8:37 am
makes no difference to the answer, but the question states that the backup location is 'F:\......', but al the answers refer to a location at 'C:\......'
probably just a typo
Kev
August 12, 2009 at 4:24 am
What is the reason for not copying the backup file?
The data will have to traverse the network anyway.
Can you access the first server from the second, i.e. via a mapped/net...
July 16, 2009 at 7:50 am
ChandraMohan Nandula (7/15/2009)
July 15, 2009 at 9:10 am
You didn't state which version, but when I started, I found this book a great help Microsoft SQL Server 2005 Reporting Services Step by Step (Microsoft Press)
Kev
July 15, 2009 at 8:13 am
An update.
The item on Connect isn't exactly the same thing, but it's asking for the kind of functionality I was looking for - i.e. being able to manage the connections...
July 11, 2009 at 4:32 am
Similar item on Connect, https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=424800
Kev
July 10, 2009 at 10:27 am
Viewing 15 posts - 46 through 60 (of 216 total)