Viewing 15 posts - 106 through 120 (of 373 total)
crookj (12/13/2013)
Ed Wagner (12/13/2013)
crookj (12/12/2013)
Ed Wagner (12/12/2013)
L' Eomot Inversé (12/11/2013)
Kurt W. Zimmerman (12/11/2013)
JAZZ Master (12/11/2013)
bitbucket-25253 (12/11/2013)
whereisSQL? (12/11/2013)
Revenant (12/11/2013)
SparksFly
Swat
Team
Services
Mass
Density
Fate - oops, I thought that was destiny 🙂
Duel of the Fates
Fickle...
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 13, 2013 at 8:30 am
Well with a little tinkering here is what I came up with:
;with C_Orders_CTE (conum, itemnum, coitemstat) as (
select conum
, itemnum
,...
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 12, 2013 at 2:37 pm
Code solutions depends on a number of things. First, it would be helpful to see the actual table descriptions.
Second, I'd want to know the scope of record volumes, in...
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 12, 2013 at 12:44 pm
You are closing your cursors in the wrong order. You need to close the UsernameCursor within the outer while loop (DATABASENAMEC).
Interesting side note, I've never had...
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 12, 2013 at 7:27 am
JAZZ Master (12/11/2013)
bitbucket-25253 (12/11/2013)
whereisSQL? (12/11/2013)
Revenant (12/11/2013)
SparksFly
Swat
Team
Services
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 11, 2013 at 1:34 pm
To answer your initial question, the @mesg_out was not declared within the scope of the SQL you are creating dynamically. You need to declare @mesg_out inside the quoted SQL.
To...
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 11, 2013 at 8:44 am
ScottPletcher (12/10/2013)
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 10, 2013 at 11:29 am
Have you considered creating a UDF that returns a table of index values in the formula?
Kurt
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 10, 2013 at 9:43 am
how many "formulas" need to be processed?
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 10, 2013 at 8:59 am
OK, so what the approach I'd use would be to create a table variable or temp table that contains all of the indexes and associated values found in the "formula"....
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 10, 2013 at 8:09 am
The next question I'd want an answer is; how many entries in #CalculationVariables? Based on that would drive the logic.
Kurt
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 10, 2013 at 7:56 am
The way I'd approach this would to start by talking out loud the logic. What you are doing is assembling an expression then executing it. It is kind...
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 10, 2013 at 7:49 am
L' Eomot Inversé (12/9/2013)
crookj (12/9/2013)
opc.three (12/9/2013)
JAZZ Master (12/9/2013)
Ed Wagner (12/9/2013)
Revenant (12/9/2013)
Kurt W. Zimmerman (12/9/2013)
Ed Wagner (12/9/2013)
BWFC (12/9/2013)
whereisSQL? (12/9/2013)
Ed Wagner (12/9/2013)
crookj (12/9/2013)Snow (8 inches of it!)
Driving
Skid
Row
Column
pillar
fire
Migration
Route
root
beer
ale
lager
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 9, 2013 at 2:28 pm
I found this article that may help you out.
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 9, 2013 at 2:21 pm
What are you doing to manage the transaction log? If your database is in Full recovery mode you should have a job that performs a transaction log backup.
Also would...
Kurt W. Zimmerman
SR DBA
Lefrak Organization
New York, NY
http://www.linkedin.com/in/kurtwzimmerman
December 9, 2013 at 2:18 pm
Viewing 15 posts - 106 through 120 (of 373 total)