Viewing 15 posts - 1,741 through 1,755 (of 2,645 total)
February 3, 2019 at 4:27 am
If it's a one-off you could take a backup from one server and restore it on the other server then copy the data with an INSERT INTO... SELECT * FROM...
February 2, 2019 at 6:36 pm
January 31, 2019 at 1:30 pm
January 31, 2019 at 9:22 am
select g.name,scrnshotfilename,publisher,ye_id,genre from games g inner join Genres p on g.ge_id = p.ge_id...January 31, 2019 at 7:23 am
It's helpful to read if you add a few new-lines to your code.
To add another inner join you could put it in like this:select g.name,pu_id,ye_id,genre...
January 30, 2019 at 2:04 pm
January 30, 2019 at 12:50 pm
You need to have the agent job on the instance (Server B) which has the linked server connection to Server A.
Your queries will then be something like:
[code...
January 30, 2019 at 10:52 am
I've just created a function that will sort a csv column alphabetically:CREATE FUNCTION dbo.SortAlphabetic
(
@Text nvarchar(4000),
@Delimiter nvarchar(10) = ';'
)
RETURNS...
January 30, 2019 at 10:15 am
You can use SQL Server 2016's STRING_SPLIT function to split the column by semi-colon into multiple rows.
You can then put the string back together in alphabetic...
January 30, 2019 at 8:26 am
If you create the stored procedure with a default value for @state of NULL, then if the parameter is NULL you can display some help for the call, e.g.:
January 30, 2019 at 7:54 am
Cannot add year to this query
SELECT FirstPrintCardFooter.FooterNotes,FirstPrintCardFooter.PrintFlag, dbo.VMainMembers.TransactionNo,dbo.VMainMembers.PaymentDate, dbo.Members.MemberCode, dbo.Members.SpecialCode, dbo.Members.Name,CAST(CAST(LEFT(dbo.Members.SpecialCode, CHARINDEX('/', dbo.Members.SpecialCode...
January 29, 2019 at 6:33 am
I clearly don't understand how SQL deals with negative selection.
Please consider the following:
[code...
January 29, 2019 at 5:23 am
rachit.agarwal2011 - Tuesday, January 29, 2019 4:40 AMdecode(e.V_Billing_Currency_Code,a.V_CHECK_CURRENCY_CODE,d.N_Applied_Amount,decode(a.N_Exchange_Rate,0,0,(d.N_Domain_Amount/ a.N_Exchange_Rate)))Could anyone help me in converting this to CASE statement
I think this...
January 29, 2019 at 5:15 am
Viewing 15 posts - 1,741 through 1,755 (of 2,645 total)