Viewing 15 posts - 1 through 15 (of 69 total)
Hi,
Based on my assumption that you are having access to Microsoft SQL Server Management Studio, you can follow the options:
step 1: From object browser, right click on your database and...
April 8, 2020 at 7:13 pm
Hi,
You could try (in case you need from a single query) like this:
SELECT IIF(COUNT(1)=0, 'Not Found', MAX(SSN))
FROM
(
SELECT
SSN FROM Table1 WHERE SSN = '401-202004-4000140'
UNION ALL
SELECT
SSN FROM...
April 8, 2020 at 4:41 pm
Hi,
Does this serve your purpose?
;WITH TestString(Test) AS
(SELECT 'J-JIM VERIFICATION FOR XX0055' AS Test UNION ALL
SELECT 'J-JIM VERIFICATION FOR XX0044' UNION ALL
SELECT 'J-JIM VERIFICATION FOR XX0033'...
March 2, 2020 at 1:29 pm
Hi,
Can you try:
declare @string varchar(1024)
set @string = 'Total # of bytes : 128270200832 (119.46GB)'
SELECT SUBSTRING(SUBSTRING(@string, CHARINDEX(':', @string) + 1, LEN(@string))
, 1
,CHARINDEX('(', SUBSTRING(@string, CHARINDEX(':',...
February 18, 2020 at 11:29 am
Hi,
I believe you need to download SSDT (SQL Server Data Tools) for this purpose.
https://docs.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt?view=sql-server-ver15
Thanks,
Debasis
January 21, 2020 at 9:32 am
Hi,
I am little confused on UserProfileId being used as primary key in both the tables [Application_User].Profile and [Application_User].Login. In my opinion, it should be used as primary key in either...
December 30, 2019 at 6:04 pm
Hi,
Yes, a .bacpac file can be used as a true backup for azure SQL database.
Thanks.
December 3, 2019 at 3:49 pm
Hi,
Does this help?
IF OBJECT_ID(N'usp_InsertData', N'P') IS NOT NULL
DROP PROCEDURE usp_InsertData
GO
CREATE PROCEDURE usp_InsertData
AS
BEGIN
SELECT * INTO #Test
FROM
(
SELECT 1 AS TestData UNION ALL
SELECT 2 AS TestData...
June 7, 2019 at 7:58 pm
Hi,
Instead of using DEFAULT constraint, this is probably a better scenario for computed column.
April 4, 2019 at 3:33 pm
Hi,
If I get your query correctly (you want the combined result of two or more check box conditions), you need to put OR condition in stead of AND...
March 28, 2019 at 12:24 am
Hi,
Can you please try like:
DECLARE @var VARCHAR(100) = 'Cosmetic bag 62x190 - Aton Cream R8241112T str98'
SELECT @var,
PATINDEX('%R[0-9]%[ABCEGHUT]%',@var),
SUBSTRING(@var,PATINDEX('%R[0-9]%[ABCEGHUT]%',@var), LEN(SUBSTRING(@var,PATINDEX('%R[0-9]%[ABCEGHUT]%', @var),LEN(@var)))-PATINDEX('% %',REVERSE(@var)))
March 27, 2019 at 3:23 am
Hi,
Does this help?
SELECT datefield FROM Table1 WHERE DateField BETWEEN DATEADD(MONTH, 1, CAST(CAST(MONTH(GETDATE()) AS VARCHAR) + '-01-' + CAST(YEAR(GETDATE()) AS VARCHAR) AS DATETIME)) AND...
January 28, 2019 at 7:26 am
Hi,
Does this help?
;WITH MinDate(DateValue)AS
(SELECT MIN(NextServ) AS MinDate FROM #lab UNION
SELECT MIN(MotDate) FROM #lab)
SELECT MIN(DateValue) FROM MinDate
January 14, 2019 at 3:40 am
I fear that may not be possible as the format that you gave is not valid as you can check below:
DECLARE @TestJson VARCHAR(MAX) = '{
...
January 10, 2019 at 1:55 pm
Hi Tommy,
If you can modify the query (along with the JSON) like below, it might help:
DECLARE @MyJson VARCHAR(MAX) = '{
"api": {
...
January 10, 2019 at 1:42 pm
Viewing 15 posts - 1 through 15 (of 69 total)