Viewing 15 posts - 91 through 105 (of 5,111 total)
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
I, personally, tend to use the expressions on properties of the connection manager, rather than the tool you are using there.
January 31, 2023 at 5:09 pm
Did you do as the error suggested? What were your findings? We can't see the expression, or the data types, so you need to give more information here.
January 30, 2023 at 5:07 pm
So you're trying to dynamically get the columns from the XML and (presumably) dynamically insert that into the appropriate columns? Then you are going to need dynamic SQL; you can't...
January 30, 2023 at 4:26 pm
Does your XML always have the same nodes?
January 30, 2023 at 4:07 pm
Unfortunately, I can't run the above, it initially gives an error about the scalar variable @MLID
not being declared (more on that later), and then if I do define it,...
January 30, 2023 at 3:24 pm
Design your tables to be appropriate for the data you need to store. If you need to store things like names, addresses, DOB, and passport Numbers, create all those columns...
January 27, 2023 at 12:05 pm
Viewing 15 posts - 91 through 105 (of 5,111 total)