Viewing 15 posts - 91 through 105 (of 210 total)
Could the error be related to the actual statement sp_executesql is executing?
Example:
DECLARE @sql NVARCHAR(MAX)
SET @sql = 'DECLARE @tbl TABLE (Test CHAR(1))'
SET @sql =
February 28, 2011 at 11:38 am
I currently use Quest Toad Data Modeler. I've used ERWin, Visio and Power*Architect in the past. For me I found that Toad does everything I need: reverse engineering right through...
February 28, 2011 at 11:16 am
How about if you moved the email criteria to the outer select and added a DISTINCT?
insert into userprofile(userID, fieldID, value,)
select distinct userID, 1000, 'external'
from user
where not exists (
...
February 23, 2011 at 6:01 pm
Not sure if this'll work or not (base table script and sample data would be helpful) but try adding userID and another set of parenthesis around the ORs in your...
February 23, 2011 at 1:57 pm
My guess is that the DISTINCT and the aggregate functions aren't playing nice.
Have you tried it without the DISTINCT and the GROUP BY?
SELECT
Account
, sum(amount) over (partition by account) Total
, count...
February 18, 2011 at 2:00 pm
Brandie Tarvin (2/14/2011)
Because, technically (at least in my environment) even T-SQL is considered code.
Yep, same here. Most of the heavy lifting is in stored procs (i.e. T-SQL) and is definitely...
February 14, 2011 at 7:11 am
Brandie Tarvin (2/9/2011)
February 11, 2011 at 7:20 am
Thanks for the responses.
GSquared (2/4/2011)
First, is review all database code yourself and make sure it's properly tuned, before it goes into production.
Right call, but tough to implement. Where there used...
February 8, 2011 at 1:29 pm
Change your string to start with the comma.
So instead of: 'Tuesday, Wednesday, '
It would be: ', Tuesday, Wednesday'
And then you're able to always cutoff the 1st two characters.
February 4, 2011 at 11:18 am
lianv 90648 (2/4/2011)
is there a way to schedule SQL Server Profiler as a job ?The y need to run on a continuous basis s for auditing . I tested...
February 4, 2011 at 11:06 am
I'd have to agree with Grant. Sometimes consistency has to trump logic, especially when you're handing it off to someone else for support.
Also, if they're going to be inflexible about...
February 3, 2011 at 7:53 am
Seems like there should be a better solution but this seems to work.
CREATE TABLE #tbl_radio (
AdDate CHAR(12)
, AdTime CHAR(8)
, Station CHAR(4)
, Duration TINYINT
)
INSERT INTO #tbl_radio (AdDate, AdTime, Station, Duration) VALUES...
January 28, 2011 at 11:49 am
Just to be clear, when the first record's time plus the duration (45 sec) is greater than the second record's time then omit the second record?
January 28, 2011 at 9:45 am
Just an FYI: I contacted Red Gate about the 404s and they referred me to documentation on a different release.
January 25, 2011 at 6:19 am
Sure, you just need to cleanup the join.
use
...and b.fk_stateid = case when...
instead of
...and b.fk_stateid = b.fk_stateid = case when...
January 25, 2011 at 6:15 am
Viewing 15 posts - 91 through 105 (of 210 total)