Viewing 15 posts - 3,766 through 3,780 (of 7,191 total)
You really haven't given us much to go on here, just a series of terse requests for help. For example, do your tables contain only one row? If...
October 25, 2013 at 2:50 am
Where did you read that WHILE loops are better than cursors? They're both loops. Far better is to do what you're trying to do in one set-based operation....
October 24, 2013 at 10:00 am
Luis is right about scalar functions. In addition, you've missed out the bit where you execute the string that you've built. However, it still won't work, since:
(a) Your...
October 24, 2013 at 8:50 am
First thing to check - is the query on SSMS and SSRS definitely running against the same database?
Second, connection options can make a difference to query performance. Things like...
October 24, 2013 at 7:55 am
Beware, though - if you have multiple matches in joinTable for any rows in tableToUpdate then you'll get unexpected results. This is known as a cardinality error, and the...
October 21, 2013 at 9:12 am
You don't need to use a cursor at all. Just add an extra join in your inner query to to ListPolicies_CB. It'll (almost certainly) run quicker and use...
October 21, 2013 at 7:35 am
dbo.sysdatabases, dbo.sysfiles, dbo.sysfilegroups.
John
October 21, 2013 at 7:29 am
If you have access to the server on which the backups were made then you can query backupset and related tables in msdb in order to generate the RESTORE script.
John
October 18, 2013 at 9:56 am
I don't think it's a performance issue, but it is a maintenance nightmare. Some third-party vendors encrypt their stored procedures so that you can't copy or change their code.
John
October 18, 2013 at 3:12 am
OK, then it's nothing to do with permissions. You won't be able to see the procedure definition unless you have the source code.
John
October 18, 2013 at 3:00 am
What message do you get if you run
EXEC sp_helptext 'ProcName'?
John
October 18, 2013 at 2:52 am
Beatrix, where are you based? There should be a user group[/url] near you. They're only about once a month, so it's not much of a time commitment unless...
October 18, 2013 at 2:31 am
Where does the balance brought forward come from?
From your sample data, it looks as if you need to use the "gaps and islands" technique. Here's[/url] one article; I think...
October 17, 2013 at 7:10 am
First, I recommend you create a calendar table. Search this site or the internet for how to do that.
Second, how do you decide whether the next date is "Open"...
October 17, 2013 at 5:52 am
Please will you post the DDL (CREATE TABLE statement) and a few sample rows for the table you're exporting from? How many rows are you exporting?
John
October 17, 2013 at 5:48 am
Viewing 15 posts - 3,766 through 3,780 (of 7,191 total)