Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Enable RPC over SQL link - Hello, Is it possible to enable RPC over an SQL link? What i am attempting to do is this: select * from openquery("server1",'EXECUTE(''sp_serveroption ''''server2'''', ''''rpc out'''', ''''TRUE'''''') AT "server2";') I am a member of SYSADMINS group on the server, so it is not a permission issue I think. But i get the following error: "Server2 […] |
SQL Server 2017 - Development |
Issue with case statement - i have a table A where the data looks like ID Name Phone CODE 15674 AUSN +14412984775 HT 15674 MAN +13857747488 JK 67866 AUSN +74666378838 HT 98765 AUSN +72366747848 HT Another table called B. where we join A and B based on ID column Table B data ID 15674 67866 98765 i am trying to […] |
generate insert statement with data from table - Hi all, My need is to generate insert statement with data from table (using existing data from that table). For example, I got table sometable1 and it has columns id, name. The result should look somewhat like this: Insert Into sometable1 (id, name) values (1, 'sometext1'); Insert Into sometable1 (id, name) values (2, 'sometext2'); How […] |
SQL Server 2016 - Administration |
Unable to connect to default SQL instance using a custom TCP port - Server A has a default SQL instance running on TCP port 12345. Server A has the SQL browser service running. Server B (on the same subnet) can connect to Server A using SSMS with/without specifying the port number. If Named Pipes protocol is disabled on Server A, Server B can no longer connect without specifying […] |
Always on Availability Groups - Can i configure a 2 Node AG Availability group in the same data(local site) centre for High Availability . |
DB mail issue - We received error when testing the DBmail The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 ( ). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: #5.1.0 Address rejected.). how to solve this issue . |
erreor in insert value from Get-DbaDbBackupHistory - Good morning all , I need to trace the history of all the backup sql of all my servers for this I use the command dbatools Get-DbaDbBackupHistory attached my powershell script $sqlservers ="DESKTOP-95KKMMH","DESKTOP-95KKMMH\production" $serveur="DESKTOP-95KKMMH" $database="msdb" foreach($sqlserver in $sqlservers) { $history=Get-DbaDbBackupHistory -SqlInstance $sqlserver $history | Select-Object -Property SqlInstance , Database,Type,TotalSize,DeviceType,Start,Duration,End | Write-SqlTableData -DatabaseName msdb -TableName History_backup […] |
Administration - SQL Server 2014 |
Stored Procedure - Usage - Hi, I am running query using sys.dm_exec_procedure_stats to get the stored procedure usage report and little confused that it shows latest time like today but Execution count is NULL so what i should understand? Is it Not using Stored Procedure at all since Last Sql server Restarted? How I should interpreting Last_Execution_Time and execution_count columns […] |
fdhost.exe service does not relinquish memory - O/S - Windows NT 6.3 (9600) - Physical Machine 16GB of Physical Memory and 8 Processors SQL Server 2014 Standard Edition (64-bit) Version 12.0.6118.4 - Named Instance - Non Clustered The same service account is used on the following services: SQL Server, SQL Server Agent, SQL Full-text Filter Damon Launcher, SQL Server Integration Services 12.0 […] |
SQL 2012 - General |
Query Required this scenario - Hai, One company multiple employees working data entry operators.Employees working two different shifts. First shift time 10AM to 6PM .Second shift time 8PM to 6AM . my requirement , date wise use wise data entry count for both the shifts. i am facing problem second shits count. Because date changed in night 12'o clock. […] |
SQL Server 2012 - T-SQL |
In varchar column add numbers and show strings - Below is the sample data create table temp (userid int , rid varchar(10), value varchar(100)) insert into temp(userid,rid,value) values(1,'D01','3'), (1,'D01','4'), (2,'C01','hey'), (2,'C01','1') expected output: 1,'D01','7' 2,'C01','hey' 2,'C01','1' I tried below code and it is throwing error select distinct userid,rid, case when ISNUMERIC(value) = 1 THEN SUM(cast(value as int)) over (partition by userId,rid order by userid) […] |
SQL Server 2019 - Development |
Getting the biggest spending customers for last 7 days - Hi all, Can anyone help with the below SQL. I'm trying to get the top 5 customers for the last 7 days. I've tried to do it as shown below but it doesn't like my ORDER BY statement in the sub select statement. Any way I can get around this? Thanks in advance. Paul. select […] |
Integration Services |
Expression builder problem - All, Can anyone advise the correct way to put this expression together? I've tried a few combinations but each results in an error when I press OK. I don't think it's relevant but it's the "arguments" expression for an execute process task. Thanks |
Exporting large amount of data out of AS400 - Good morning from my home office. Hope all is well. I have successfully configured the ODBC connection using iSeries something or other and created the data source in SSIS and all of that is working great, including some transformations. My job seems to fail when doing the load. It is going to a SQL server […] |
Article Discussions by Author |
Stairway to U-SQL Level 16: The Azure Data Lake Catalog - Comments posted to this topic are about the item Stairway to U-SQL Level 16: The Azure Data Lake Catalog |