Viewing 15 posts - 196 through 210 (of 236 total)
The best way would be to put it in another schema and manage the security on that schema, but I will operating under the assumption that you can't move it...
May 28, 2010 at 8:49 am
I have a question regarding this.
Recently, our team reinvestigated our maintenance plan. With the addition of a SAN, and the movement of our database files to the SAN, we...
May 28, 2010 at 8:32 am
My hobby has always been computer programming (since I was a kid). Personally, I prefer game programming, but database programming definitely keeps me interested. I do spent some...
May 28, 2010 at 8:18 am
I think time off would be the best bonus ever. It could even be unpaid, I wouldn't care. Time off work is just plain good for mental health....
May 27, 2010 at 2:33 pm
You can ATTACH a .mdf file, but not restore from it. Attaching it will create the database in the state in which it was detached. (Google: sql server...
May 27, 2010 at 1:48 pm
Great Lowell, I'm glad I could help. For my requirements, 4000 characters was more than enough. I'm glad you were able to manipulate it to meet your needs.
--J
May 26, 2010 at 5:31 am
iklektic (5/25/2010)
The complete code I have for this query so far is:
DECLARE @StartDate datetime, @EndDate datetime
SELECT @StartDate = DATEADD(MONTH, -6, GETDATE()), @EndDate = GETDATE()
SELECT MAX(Customer.CustomerID)...
May 25, 2010 at 3:04 pm
You will also need to:
ALTER DATABASE <dbname>
SET TRUSTWORTHY ON
For the database you are deploying the assembly to.
May 25, 2010 at 1:52 pm
That's definitely strange. Personally, I deployed mine from VS, but I've deployed CLRs manually before, and didn't have any such problem.
If I script out my function, it looks...
May 25, 2010 at 1:48 pm
The CTE is part of the query, and always belongs at the beginning (no matter how big the query).
It is the logical equivilent of creating a table variable:
DECLARE @indaterange TABLE...
May 25, 2010 at 12:48 pm
I'd argue that calling a VBS from the command line is much less manageable than using CLR. Calling VBS from the command line introduces points of failure that don't...
May 25, 2010 at 12:39 pm
CTE stands for "Common table expression". It's the equivlent of creating a table variable and then using it in the following query, except it all happens in a single...
May 25, 2010 at 12:33 pm
CONVERT 101 should work fine then.
SELECT CONVERT(VARCHAR,DATEADD(year, -1, dateadd(s,-1,dateadd(dd,datediff(dd,0,getdate()),0))),101)
Returns "05/24/2009". But, it returns it as a VARCHAR, not a datetime. You should not use a VARCHAR for date...
May 25, 2010 at 12:28 pm
He nixed the solution or the entire project? Did he give a reason?
--J
May 25, 2010 at 12:22 pm
Viewing 15 posts - 196 through 210 (of 236 total)