|
|
-
bulentgucuk Liked 11 Months ago through Just Learned | 1 Point
There's no way to return a resultset and set variables using a single SELECT statement.
But there's one way to do it using a MERGE statement.
It's quite simple, you first declare a variable table which will be used to store some data.
You then use a...
|
-
bulentgucuk Learned 11 Months ago through Just Learned | 1 Point
There's no way to return a resultset and set variables using a single SELECT statement.
But there's one way to do it using a MERGE statement.
It's quite simple, you first declare a variable table which will be used to store some data.
You then use a...
|
-
bulentgucuk Liked 11 Months ago through Just Learned | 1 Point
There's no way to return a resultset and set variables using a single SELECT statement.
But there's one way to do it using a MERGE statement.
It's quite simple, you first declare a variable table which will be used to store some data.
You then use a...
|
-
bulentgucuk Learned 11 Months ago through Just Learned | 1 Point
There's no way to return a resultset and set variables using a single SELECT statement.
But there's one way to do it using a MERGE statement.
It's quite simple, you first declare a variable table which will be used to store some data.
You then use a...
|
-
bulentgucuk Liked 1 Years ago through Just Learned | 1 Point
As we know, automatically created statistics, as can be see with
SELECT * FROM sys.Stats WHERE object_id LIKE OBJECT_ID('MyTable')
(only change 'MyTable' for something else), has name starting with _WA_Sy_....
|
-
bulentgucuk Learned 1 Years ago through Just Learned | 1 Point
As we know, automatically created statistics, as can be see with
SELECT * FROM sys.Stats WHERE object_id LIKE OBJECT_ID('MyTable')
(only change 'MyTable' for something else), has name starting with _WA_Sy_....
|
-
bulentgucuk Liked 1 Years ago through Just Learned | 1 Point
As we know, automatically created statistics, as can be see with
SELECT * FROM sys.Stats WHERE object_id LIKE OBJECT_ID('MyTable')
(only change 'MyTable' for something else), has name starting with _WA_Sy_....
|
-
bulentgucuk Learned 1 Years ago through Just Learned | 1 Point
As we know, automatically created statistics, as can be see with
SELECT * FROM sys.Stats WHERE object_id LIKE OBJECT_ID('MyTable')
(only change 'MyTable' for something else), has name starting with _WA_Sy_....
|
-
bulentgucuk Liked 1 Years ago through Just Learned | 1 Point
I was looking into some table creation scripts in source control today. I found that the developers used two ways to check if the table exists in the database.
Few scripts employed `information_schema.tables` vs `sys.objects`. I personally, have be...
|
-
bulentgucuk knew 1 Years ago through Just Learned | 1 Point
I was looking into some table creation scripts in source control today. I found that the developers used two ways to check if the table exists in the database.
Few scripts employed `information_schema.tables` vs `sys.objects`. I personally, have be...
|