Viewing 15 posts - 91 through 105 (of 129 total)
From the research I have done so far, the answer appears to be no, it cannot be done.
You cannot simply try to cast the system.object variable into a string...
February 26, 2009 at 2:18 pm
I did finally find some information in BOL (Creating Nonclustered Indexes) which helps explain things for me. For the benefit of people who do not know what a "heap" is...
February 20, 2009 at 1:20 pm
Jeff,
Good question. First, the problem was the Invoice Total (a seperate record in the file we receive) did not always match the sum of the charge(s) (sum was sometimes...
January 27, 2009 at 5:41 am
Oh... oh.... now why did I not think about that! I use the Row_Number() function in other SQL statements... never thought about it in this case. Another case of posting...
January 26, 2009 at 9:12 am
Thinking about it some more, we came up with a solution that might be a bit faster... instead of doing an update for ever record (processing row by row may...
January 26, 2009 at 7:47 am
Alan,
Yes... I was just getting to resort to an older, cursor method for going through all of the databases when I decided to give it one more try.
1)...
January 5, 2009 at 10:11 am
I tried both SA and "windows authentication", both of which have full permissions in in the SQL Server Express instance and access to all of the databases.
January 5, 2009 at 7:53 am
Nope... putting the [] in did not help retrieve any more databases with without the [].
January 5, 2009 at 7:29 am
Thanks for the suggestion about using EXEC sp_dropserver 'yourServerName,'droplogins'.
We were just trying to use EXEC sp_dropserver 'yourServerName without the droplogins directive and received errors about a linked server (another...
December 17, 2008 at 8:32 am
Please ignore the CODE GOES HERE comments... I use templates when I create some of these scripts. 😉
September 30, 2008 at 9:35 am
Hmmm.... no matter what I did, I could not get the WHERE clause to use the DATEDIFF function without getting a conversion error message.
I re-did the process... here it...
September 30, 2008 at 9:33 am
Thanks for the suggestions all! 🙂
Doing a replace would not work, as any occurrences such as 0901 would become 9 1 (char data). But doing WHERE CAST(ActualTime AS INT) <>...
September 19, 2008 at 8:35 am
IF NOT EXISTS
(
SELECT *
FROM SYS.OBJECTS
WHERE TYPE = 'FN'
AND
NAME = 'GETMONTHEND'
)
EXEC sp_executesql @Statement = N'CREATE FUNCTION GETMONTHEND(@DATE DATETIME)
RETURNS DATETIME
...
September 18, 2008 at 9:39 am
My bad... they are UNION ALL in the Views.
August 20, 2008 at 10:51 am
Here is the rest of the post, part of the execution plan:
[/RelOp]
[RelOp AvgRowSize="75" EstimateCPU="0.0001581" EstimateIO="0.003125" EstimateRebinds="3512.44" EstimateRewinds="0" EstimateRows="1" LogicalOp="Clustered Index Seek" NodeId="85" Parallel="false" PhysicalOp="Clustered Index Seek" EstimatedTotalSubtreeCost="5.80676"]
[OutputList]
[ColumnReference...
August 20, 2008 at 10:13 am
Viewing 15 posts - 91 through 105 (of 129 total)