Forum: MS SQL 9 Days Ago |
| Replies: 1 Views: 378 Ok, after some more digging I found this
prev_bizday= dateadd(day, case when datepart(weekday, dte) = 1 then -2
when datepart(weekday, dte) = 2 then -3 else -1 end, dte)
where dte is... |
Forum: MS SQL 10 Days Ago |
| Replies: 1 Views: 378 What I need is the SQL code to display the last business day - usually will be one day prior, but I want that if I run this code on Monday that, instead of Sunday's date, I get Friday's date.
This... |
Forum: MS SQL Aug 18th, 2009 |
| Replies: 3 Views: 420 Great help... thanks a lot!! |
Forum: MS SQL Aug 12th, 2009 |
| Replies: 3 Views: 420 My manager has just asked me to research whether it would be possible to restore a previously fully backed up database into two or more filegroups, with each filegroup being on a separate drive using... |
Forum: MS SQL Mar 31st, 2009 |
| Replies: 2 Views: 1,491 Thanks, but I wanted it as an INTEGER, not a varchar... the script references the sysjobhistory table in the msdb database, and, in that table, the run_date column is an integer. |
Forum: MS SQL Mar 30th, 2009 |
| Replies: 2 Views: 1,491 This set of code below shows all SQL Server Agent jobs that have failed for the date 200.03.29. The run_date column is an integer, but I want to run the code in such a way that the resultset is... |
Forum: MS SQL Jan 27th, 2009 |
| Replies: 10 Views: 1,853 Yeah I recognize that. Thanks! I was just opening the VB.NET to send it there |
Forum: MS SQL Jan 27th, 2009 |
| Replies: 10 Views: 1,853 ok thanks .... here we go... |
Forum: MS SQL Jan 27th, 2009 |
| Replies: 10 Views: 1,853 I will... thanks!
Should I post another question concerning why the datagrid isn't showing up the data from the function, or should I ask it here? |
Forum: MS SQL Jan 27th, 2009 |
| Replies: 10 Views: 1,853 I seem to have gotten past that problem... now it says
InvalidCastException
Unable to cast object of type 'System.Data.SqlClient.SqlDataReader' to type 'System.Data.SqlClient.SqlDataReader[]'.'
... |
Forum: MS SQL Jan 27th, 2009 |
| Replies: 10 Views: 1,853 wow... I didn't see that... you're right! I'll modify it and get back to you... give me a sec... |
Forum: MS SQL Jan 27th, 2009 |
| Replies: 10 Views: 1,853 I have created two table valued multi-statement functions using SQL Server 2000 and am now trying to develop a VB.NET front end application where I run the functions and pass string parameters to... |