How can we help you today? How can we help you today?
gerthauan

Activity overview

Latest activity by gerthauan

Check for update does not get me the latest release
Today I updated SQLPrompt on one of my app-servers. The version now says 10.14.21.9884. If I do "Check for updates", it says I have the latest version, even though the release notes says the latest...
1 follower 1 comment 0 votes
Columns do not have data type when created with CASE
@Jon_Kirkwood Hi. I was a bit quick to accept your answer as the solution for the previous question regarding data type not present in temp-tables when created with a CAST. Since I did not hear any...
1 follower 2 comments 0 votes
@Jon_Kirkwood Hi. I was a bit quick to accept your answer as the solution. Allthough the problem with the cast-columns has been fixed, there is still a problem if the column was created with a CASE-statement. If I use the same example again: DROP TABLE IF EXISTS #TempTableName; SELECT  CAST(bffs.ID AS varchar(10))                                AS ID       , bffs.ServerName       , bffs.DatabaseID       , CAST(bffs.DatabaseID AS varchar(6))                         AS DatabaseIDConverted       , bffs.TypeDesc       , CASE WHEN bffs.TypeDesc = 'ROWS' THEN 'ROWS' ELSE 'LOG' END AS TypeDescWithCast INTO    #TempTableName FROM    dbo.BlitzFirst_FileStats bffs; SELECT  * FROM  #TempTableName ttn; If I hover over the #TempTableName and collect the create table script that SQLPrompt is suggestion, it turns out like this: CREATE TABLE [#TempTableName] ( [ID] VARCHAR(10), [ServerName] NVARCHAR(128), [DatabaseID] INT NOT NULL, [DatabaseIDConverted] VARCHAR(6), [TypeDesc] NVARCHAR(60), [TypeDescWithCast] ) As you can see, the column created with CASE-expression, the one named TypeDescWithCast, has no data type in the create table-script. Could you pass this along to the developers? Thx / comments
@Jon_Kirkwood Hi. I was a bit quick to accept your answer as the solution. Allthough the problem with the cast-columns has been fixed, there is still a problem if the column was created with a CASE...
0 votes
Why does the Create script for a temp-table not show datatype for all columns?
If I am in a session in SSMS where I have created a temp-table using a select into query, then when I hower over this temp-table-name in the query after, and click on it to show the create script, ...
3 followers 6 comments 0 votes
BUG: Formating queries fails if GO statement is not on a line of its own
HiIt seems that the formatting fails when there is a GO statement on the same line as another query. I get an error trying to format the following query:SELECT * FROM Felles.DimAlder da; GO I am on...
2 followers 2 comments 0 votes