Viewing 15 posts - 2,761 through 2,775 (of 13,853 total)
You're nearly there. Try this structure instead
IF EXISTS (SELECT 1 FROM tbl WHERE username = 'whatever')
BEGIN
--Username found code
SELECT 1;
END;
ELSE
BEGIN
...
April 8, 2020 at 3:41 pm
Thanks for taking the time to write that out.
While I'm sure it would have been helpful in this case to permit 'circular' references, I'm still not convinced that this is...
April 8, 2020 at 1:51 pm
Firstly, please note that a Script Component is different from a Script Task – the names are not interchangeable. You are talking only about script tasks here (script components appear...
April 8, 2020 at 1:42 pm
The server threw an exception [0x80010105]
Did you Google this error? I just did, and there are lots of hits. Based on the knowledge you would have accrued from the hits,...
April 7, 2020 at 5:42 pm
The SQL Agent service may (should) run as a different user from both SQL Server and Windows (which is not relevant here). Check the service credentials.
April 7, 2020 at 5:24 pm
Now if MS could fix bloody circular project references it would be great.
Can you provide a practical example where circular (as defined by MS in this case) references are an...
April 7, 2020 at 5:21 pm
you can try the following.
create a folder where you put the create scripts for those tables
on the projects where you need those tables ensure you have the folders setup...
April 7, 2020 at 3:37 pm
I can add them with a shared post deployment script, but the triggers in the project would fail since they won't be able to "see" the tables...
Not ideal, but could...
April 7, 2020 at 2:52 pm
I can't think of a way of doing this which allows the schema objects to be both part of every database project and maintainable from a single place.
I don't think...
April 7, 2020 at 1:48 pm
I'm a fan of SSIS, and it can certainly be done that way (but it's not trivial).
You could write a simple PoSh script to pre-process the file & split it...
April 6, 2020 at 11:19 pm
Do you have a different source file for every layout?
April 6, 2020 at 9:18 pm
Your file format does not appear to match the data you have provided (eg, row 1 is at least 122 characters in length, whereas your layout is 78 characters in...
April 6, 2020 at 8:47 pm
Ah, my apologies. I'd assumed that, with >2,700 points, you would understand exactly what I meant.
What we need here is code which other developers can run in SSMS.
So
1)
DROP TABLE IF...
April 6, 2020 at 1:33 pm
You know the drill. Can you provide some sample consumable DDL, data and desired results, please?
April 5, 2020 at 11:36 pm
Thank you for your feedback, appreciate your valuable time, skills and know ledges. Do you agree if we have more than 5 millions rows in source table, we should...
April 5, 2020 at 1:53 pm
Viewing 15 posts - 2,761 through 2,775 (of 13,853 total)