Viewing 15 posts - 316 through 330 (of 458 total)
Second try, apparently my last post got eaten...
You might try using a File System Task to copy the file to a static file name and point your connection object to...
October 5, 2006 at 10:20 am
When you create the job step, set the Type drop-down box to "SQL Server Integration Services Package".
Then you should be able to specify the server and package to execute.
October 5, 2006 at 9:43 am
I'd actually loop over INFORMATION_SCHEMA.TABLES to find your list, it's going to always be up to date whereas AppClient might not be.
DECLARE @sql NVARCHAR ( 4000 )
SET @sql =...
October 4, 2006 at 3:42 pm
It sounds like you're trying to log in with a default database that has been dropped or you're specifying a database that no longer exists when you log in.
October 4, 2006 at 2:54 pm
I would use a case statement as semesters tend to be variable based on the educational institution.
SELECT CASE
WHEN GETDATE() BETWEEN '2006-01-01' AND '2006-03-01' THEN 'Winter'
WHEN...
October 4, 2006 at 10:27 am
Do you mean column-level encryption or network communication encryption?
September 29, 2006 at 3:09 pm
Tim-
I showed a technique for handling this situation in the following article. Adapt to your needs:
http://www.sqlservercentral.com/columnists/aingold/workingaround2005maintenanceplans.asp
Hope this helps.
September 29, 2006 at 1:37 pm
Yeah, SQL Server is pretty good about identifying functions which need to evaluate and produce a single result per line (NEWID, ISNULL) and a function which will produce a static...
September 28, 2006 at 10:47 am
The IIS and SQL Server are on the same machine
Ouch. I'd change that first. You really don't want to have any SQL Server sitting on a box that...
September 28, 2006 at 10:05 am
They query processor won't invoke GETDATE() for each record. It will do it once. The bigger problem is the DATEDIFF function which forces math to be done between...
September 28, 2006 at 9:50 am
SELECT DATEPART(mm, Date_occur) AS Month, COUNT(*) as NumberOfTransaction
FROM tblTransaction
GROUP BY DATEPART(mm, Date_occur)
ORDER BY DATEPART(mm, Date_occur) ASC
That should do it...
September 27, 2006 at 11:07 pm
Yeah, the GETDATE() comparison is problemmatic, but not because it repeatedly executes GETDATE(). The problem is it does a DATEDIFF against Process_Date... for each value. The better approach...
September 27, 2006 at 11:05 pm
Yeah, the GETDATE() comparison is problemmatic, but not because it repeatedly executes GETDATE(). The problem is it does a DATEDIFF against Process_Date... for each value. The better approach...
September 27, 2006 at 11:05 pm
I think he means ROWCOUNT, not the @@ROWCOUNT system variable. To get the top 10 rows you'd do:
SET ROWCOUNT 10
EXEC sp_CommunityStoreList
-----------------------
Oh, it's also generally bad format to use "sp_"...
September 27, 2006 at 5:57 pm
Use a left outer join... and for good measure always reference your tables. I'm assuming couCourseID is your primary key.
INSERT INTO tblBackupCourses
SELECTtc.*
FROMtblCourses tc
JOINtblGrades tg
ON tc.couCourseID = tg.graCourseID
LEFT JOIN...
September 26, 2006 at 4:24 pm
Viewing 15 posts - 316 through 330 (of 458 total)