Viewing 15 posts - 181 through 195 (of 248 total)
please give solution for above this problem.
also, check this out:
https://dba.stackexchange.com/questions/186871/how-to-free-the-unused-space-for-a-table
May 16, 2019 at 1:28 pm
another version assuming that you need diff in ms , there are two records per table (status 1 and 2) and the amount of records is needed of the second...
May 16, 2019 at 1:07 pm
questions:
May 16, 2019 at 12:38 pm
First idea
you can create second job with no schedule (and even disabled) which invokes your SSIS package
in the first job when there are new records just run the second job...
May 16, 2019 at 9:34 am
you can substitute the values in the report
example: =iif(isNothing(Parameters!AddressLine1.Value)=False
, iif(Parameters!AddressLine1.Value<> Fields!address1_line1.Value
, Parameters!AddressLine1.Value
, Fields!address1_line1.Value
)
, Fields!address1_line1.Value
)
Also, parameter AddressLine1 should be Visible and Allow blank value.
May 16, 2019 at 8:57 am
try to connect from command line using sqlcmd app
example:
-- locally/remotely
sqlcmd -S [sql\instance] -U [username] -P [password]
-- remotely
sqlcmd -Stcp:[sql\instance] -U [username] -P [password]
* [sql\instance], [username] & [password] should be replaced with...
May 16, 2019 at 8:14 am
Forgive my ignorance here. How would I do the select and union all select as a variable? The table I am dealing with is 70,000 rows with hundreds of...
May 15, 2019 at 3:49 pm
such one?
with input ([start],[end],[quant]) as
(
select 10,50,5
)
, [data] as (
select
[start]
,[quant]
,[end]
,[quant] [ttl]
from input
union all
select
[start]+[quant]
,[quant]
,[end]
,[ttl]+[quant]
from [data]
where [start]+[quant]<=[end]
)
, kms as (
select
convert(varchar(10),[start])+ '-'+ convert(varchar(10),lead([start],1,NULL) over (order by [start]))+'...
May 15, 2019 at 3:39 pm
ok, glad it helped
here is the code:
with data ([Vendor Name],[Vendor No],[Invoice No],[INVOICE DATE],[Check No]) as
(
select 'Company123', '11445','11112','20180502',123456
union all select 'Company123', '11445', '11113', '20180601',123456
union all select 'Company123',...
May 15, 2019 at 2:07 pm
see attached
May 15, 2019 at 1:40 pm
please, show the output of the following:
select @@version
May 15, 2019 at 1:17 pm
if your users are blocked running selects against your tables, RCSI may help you with the issue
link:
https://sqlperformance.com/2014/05/t-sql-queries/read-committed-snapshot-isolation
May 15, 2019 at 1:04 pm
you haven't given a chance to help you and not provided
btw, nice article to read :
May 15, 2019 at 12:56 pm
substring fuction expects a string to work with
you column BLLG_END_DT is of datetime type
to get the desired result try the following:
SELECT TOP 10
BLLG_END_DT
--,SUBSTRING(BLLG_END_DT, 1, 10)
,format(BLLG_END_DT, 'yyyy-MM-dd')...
May 15, 2019 at 12:47 pm
check the following dmv (column transaction_begin_time):
sys.dm_tran_active_transactions
in case of sp_whoisactive, there's a parameter @get_transaction_info which will answer your question
link:
http://whoisactive.com/docs/12_transaction/
May 15, 2019 at 12:37 pm
Viewing 15 posts - 181 through 195 (of 248 total)