Viewing 15 posts - 76 through 90 (of 5,101 total)
No, there is no syntax to ALTER
a table and ADD
column only if it doesn't exist, and (presumably) ALTER
the column if it does like, for example, CREATE OR...
February 8, 2023 at 11:44 am
Not an option. I'm outranked by this person. That's why I'm trying to find the information.
Wouldn't someone who "outranks" you want to teach you the why along with the...
February 7, 2023 at 5:15 pm
Thom A wrote:Just to prove Grant's statement a little more, here's a quick demo.
As a bit of a sidebar, what did you use as a screen recorder?
On Windows, ShareX. I...
February 7, 2023 at 5:06 pm
Just to prove Grant's statement a little more, here's a quick demo.
So you can see that the first SELECT
, which wants rows on or after the current...
February 7, 2023 at 12:18 pm
Just to prove Grant's statement a little more, here's a quick demo.
So you can see that the first SELECT
, which wants rows on or after the current...
February 7, 2023 at 12:18 pm
This implies that the ownership chain is being broken somewhere; the point of ownership chaining is that you don't need to give explicit access to the objects. Who are the...
February 7, 2023 at 9:38 am
How are you getting this query out from the database? Are you, by any chance, copying out of a grid view in SSMS? Is so, do you have Retain CR/LF...
February 6, 2023 at 5:12 pm
Ownership chaining doesn't work cross database unless the cross database chaining feature is enabled on both databases and the login in question has a user in both database. Cross database...
February 6, 2023 at 10:01 am
Thank you for the assistance. Do you mean it must be part of the Group By statement/columns, like below(but a new error appears)?
"Msg 2714, Level 16, State 3, Procedure...
February 2, 2023 at 12:13 pm
I would use a File as a list.
Thx.
So where does this file get the list of tables with the tables that has the column you want to query? How...
February 1, 2023 at 5:54 pm
This DB is running on a SQL2012 box
I will be honest, I assumed you wouldn't be using an unsupported version of SQL Server, as you didn't state you were....
February 1, 2023 at 5:49 pm
If you can do this in T-SQL, rather than Powershell, this isn't particularly difficult if I am honest. I use a column name that appears often in one of my...
February 1, 2023 at 4:54 pm
yeah thinking the script in PS so if needed updated adding more tables to list would be easy to update script rather than having someone having to use SSMS...
February 1, 2023 at 4:13 pm
DDL of Transactions table and ransactions_type below. I tried changing the column name.
Neither of those tables have atransactiondate
column though, so the reason you are getting the error is...
February 1, 2023 at 4:06 pm
You've posted this in the Powershell forum, so should we be assuming you want a solution that uses Powershell, rather than T-SQL?
February 1, 2023 at 3:06 pm
Viewing 15 posts - 76 through 90 (of 5,101 total)