Viewing 15 posts - 8,626 through 8,640 (of 8,760 total)
You'll find detailed instructions in this article
Determining space used for each table in a SQL Server database[/url] by: Greg Robidoux
😎
April 5, 2014 at 11:56 pm
Jeff Moden (4/5/2014)
print concat('drop table ',@tablename);
I just can't help it. CONCAT seems so much less natural and less obvious and more difficult to read than...
print 'drop table ' +...
April 5, 2014 at 11:31 pm
ankit.oza (4/5/2014)
Thank you so much Guys. But I was wondering what is wrong in my version of code?
The problem is that you cannot pass sql identifiers such as table names...
April 5, 2014 at 4:52 pm
naresh0407 (4/5/2014)
.Just need to validate the filename CLM_20140504..Could you please let me know how can we validate.Today date is 20140504 so the CLM_20140504 is valid file.
Assuming that you have...
April 5, 2014 at 4:28 pm
naresh0407 (4/5/2014)
Can i acheve this without scriptask?
I have one...
April 5, 2014 at 3:49 pm
This code creates a polygon and 200 points (lat/lon) and then selects the points that are inside the polygon
😎
DECLARE @POLIGON geography;
SET @POLIGON = geography::STPolyFromText('POLYGON ((5 5, 10 5, 10...
April 5, 2014 at 3:14 pm
What's next, business holidays and weekends? 😀
Just for the sake of completion:
SELECT Eventdate,Status
INTO #AP_DATA
FROM (VALUES
('2014-01-20 18:00', 0)
,('2014-01-20 18:30', 0)
,('2014-01-20 19:00', 1)
,('2014-01-20 19:30', 0)
,('2014-01-20 20:00', 1)
,('2014-01-20 20:30', 0)
,('2014-01-20 21:00', 0)
,('2014-01-20 21:30',...
April 5, 2014 at 2:14 pm
ado-712642 (4/5/2014)
April 5, 2014 at 1:39 pm
J Livingston SQL (4/5/2014)
I "thought" that UNBOUNDED PRECEDING/FOLLOWING was introduced in 2012...so not available in 2008?
may well be wrong.
nevertheless it provide a solution...
I wonder what is...
April 5, 2014 at 1:10 pm
Here is the code 😎
DECLARE @POLIGON GEOMETRY;
/* ms sample from BOL */
SET @POLIGON = geometry::STPolyFromText('POLYGON ((5 5, 10 5, 10 10, 5 5))', 0);
;WITH NN1(N) AS (SELECT NM.N FROM...
April 5, 2014 at 12:19 pm
J Livingston SQL (4/5/2014)
some significant changes between these two editions.....which one is in use now?
Lets do both with the same solution
😎
/* SAMPLE DATA */
SELECT
X.NUM
INTO #MY_NUMBERS
FROM
(
...
April 5, 2014 at 11:57 am
Join the two tables and use ISNULL/COALESCE to replace NULLs
😎
DECLARE @TABLE_A TABLE
(
SNO INT ...
April 5, 2014 at 6:26 am
AndrewSQLDBA (4/4/2014)
Happy Friday
I am dealing with what I believe is Oracle that is the source of a SQL View.
I am seeing a data type of Integer in the View,...
April 5, 2014 at 3:43 am
This can be done by shifting each point on the line by x and y (@OFFSET_X/Y in the code)
😎
DECLARE @line geometry = 'LINESTRING(1 1, 2 2, 3 3, 4 4,...
April 5, 2014 at 12:48 am
Use a CTE or a table with the additional email addresses to be added, cross join to a filtered set with code replacement and union the result to the original...
April 4, 2014 at 11:37 pm
Viewing 15 posts - 8,626 through 8,640 (of 8,760 total)