Viewing 15 posts - 2,251 through 2,265 (of 14,953 total)
It looks like you're trying to write this trigger Oracle-style, where the trigger runs once for each row in the transaction. SQL Server doesn't fire triggers that way.
Try this:
create...
January 13, 2012 at 1:47 pm
waheed71 (1/13/2012)
Absolutely Right, but I am my Database is based on mySQL and I am new to mySQL and don't know coding. Your help will be highly appreciated!
You'll have to...
January 13, 2012 at 12:50 pm
Probably. Or some form of error handling on those rows, as per usual "divert to a separate workflow" kind of things.
January 13, 2012 at 12:18 pm
Are you talking about extracting the values from the XML and storing them in regular tables?
If so, XQuery is one way to get there. You'll need the node and...
January 13, 2012 at 12:17 pm
azdzn (1/13/2012)
Do you have a repository with all your staging database script ?
If both answers are no, I'll put that into production...
January 13, 2012 at 12:15 pm
Is it possible there are rows that don't have parentheses in them? If so, it'll get an eval error.
January 13, 2012 at 12:14 pm
SQL Kiwi (1/13/2012)
What's the general feeling about asking Steve to remove that "Question for the Experts" thread? +1 vote here.
I'd rather he didn't. It may have some ugliness...
January 13, 2012 at 12:01 pm
Use Findstring instead of Charindex. Does the same thing.
January 13, 2012 at 11:57 am
I'd put them in the staging database, just to keep it self-contained. Easier to document that way.
January 13, 2012 at 11:54 am
azdzn (1/13/2012)
GSquared (1/13/2012)
You could simplify to:
GRANT EXEC TO PUBLIC;
I think you still have to create a user in the database with that.
Use the guest account.
Edit: Just noticed you suggested about...
January 13, 2012 at 11:52 am
You could simplify to:
GRANT EXEC TO PUBLIC;
I'm not sure I'd go that far in any database I'm responsible for, but it should work.
January 13, 2012 at 11:46 am
It looks like you're looking for either one row or one column of aggregated data, right?
Why not write each query on its own, either as inline sub-queries in a single...
January 13, 2012 at 11:39 am
Viewing 15 posts - 2,251 through 2,265 (of 14,953 total)