Formatted ASCII Results from a SELECT
Generate aligned output from SELECT statement for code comments using a simple stored procedure.
2018-01-18
2,458 reads
Generate aligned output from SELECT statement for code comments using a simple stored procedure.
2018-01-18
2,458 reads
2015-03-23
2,019 reads
Powerful function to find strings containing or excluding classes of ASCII characters.
2012-09-10 (first published: 2012-08-28)
1,020 reads
2010-04-30 (first published: 2010-04-26)
3,522 reads
2008-11-06 (first published: 2008-09-12)
936 reads
That's what I want to do, as per an example in the BOL:DECLARE @IntVariable INT DECLARE @SQLString NVARCHAR(500) DECLARE @ParmDefinition NVARCHAR(500)/* Build the SQL string once.*/ SET @SQLString = N'SELECT * FROM pubs.dbo.employee WHERE job_lvl = @level' SET @ParmDefinition = N'@level tinyint' /* Execute the string with the first parameter value. */ SET @IntVariable […]
2005-03-14
This may just be academic, but..Remember that when you talk about the "format" of a date/time value, you're strictly talking about presentation. No matter how the date/time is represented, the actual datetime datatype is stored as two numbers that specify the number of days since Jan 1, 1900 and the number of milliseconds since midnight.As has already been […]
2005-03-02
Ah, my bad. Didn't read the question close enough... In that case, select CASE field2 WHEN 0 THEN 0 ELSE (field1 / field2) END + ( other calcs ) FROM .... should do just as required.. /Kenneth
2004-06-28
2003-12-30
1 reads
if u have too many params and u want to bulid a sql statment according to the data in it u can try sp_sqlexcute or exec() by using this u can exec string and get output .
2003-07-21
2 reads
By Steve Jones
The season 1, seventh episode of Simple Talks is out. Check it out, with...
By Steve Jones
the McFly Effect – n. the phenomenon of observing your parents interact with people...
At a recent conference I was asked how I executed code during my presentation....
Comments posted to this topic are about the item 7 sept, scheduled book
Comments posted to this topic are about the item 7 sept, schedlued article
Comments posted to this topic are about the item 6 sept, published book
Azure Data Lake Storage Gen 2 is built on ...?
See possible answers