Viewing 15 posts - 2,011 through 2,025 (of 2,355 total)
The trigger route seems like it can be pretty painful.
How many procs can update this table?
If there are only a few, then would creating a separate table that...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 9, 2015 at 9:25 am
Run the proc on the linked server???
EXEC serverame.databasename.schema.proc
Or, create a job on the linked server and start it like this:
EXEX servername.msdb.dbo.sp_start_job @job_name = 'My job'
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 8, 2015 at 10:37 am
Be sure that they are not used.
Remember that the data being used by sp_blitzindex is re-set after every restart of SQL server.
So, if the server was re-started...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 8, 2015 at 10:14 am
Jeff Moden (6/19/2015)
Michael L John (6/19/2015)
The unfortunate part is that it's sometimes very difficult to get the crowd to see the importance of doing it "right" and what "right" means....
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 8, 2015 at 9:52 am
Lynn Pettis (7/8/2015)
Michael L John (7/8/2015)
Try using a UNION ALL.
Won't work since the OP wants the numeric values converted to integer values:
select cast(Data as int) from #TestData where Data not...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 8, 2015 at 9:39 am
Try using a UNION ALL.
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 8, 2015 at 9:09 am
If the name of the column is simply "ID", regardless of case, that's probably not a good practice.
It means nothing. Would table_name_ID make more sense?
As for naming conventions in...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 8, 2015 at 7:50 am
+ 1000 for what Steve said.
As an example, the import wizard will convert every number to a float. You really do not want to use floats in your database. ...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 7, 2015 at 2:19 pm
This causes data inconsistency where 50% of the code was saved to the DB and 50% was not - seeing that a stored proc is not transactional and therefor does...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 7, 2015 at 2:06 pm
The only approach to get this working is AFAIK to use a loop of some kind (like sp_MSFOREACHTABLE) and within this loop you use dynamic SQL to execute the query...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
July 7, 2015 at 8:55 am
Is your connection string something like this:
Persist Security Info=False;User ID=DOMAIN\USER;Password=PASSWORD;Initial Catalog=AdventureWorks;Server=MySqlServer
That is not going to work. This is what you would use for SQL authentication.
To use Windows authentication, this needs...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
June 22, 2015 at 7:10 am
It is not the case in a relational model of a database when a B row is added and a C row is added. They can (B row and C...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
June 19, 2015 at 11:20 am
The unfortunate part is that it's sometimes very difficult to get the crowd to see the importance of doing it "right" and what "right" means. If it's overwhelmingly impossible...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
June 19, 2015 at 9:01 am
Megistal (6/19/2015)
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
June 19, 2015 at 8:11 am
You have been given the answer to your problem in both the error message you are getting, and in the post that Phil provided.
Use WITH REPLACE in your restore...
Michael L John
If you assassinate a DBA, would you pull a trigger?
To properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
June 19, 2015 at 7:08 am
Viewing 15 posts - 2,011 through 2,025 (of 2,355 total)