Quantcast
Channel: SQL Server Database Engine Forum
Viewing all 15872 articles
Browse latest View live

Database Partitioning Sliding Window

$
0
0

Hi All,

Greetings!

I am working through a POC on SQL Server database partitioning (SW) and need some help, below is the partition function and schema (RIGHT RANGE) 

PRIMARY

<=YEAR1 (31/12/2014)

YEAR 2015

<=YEAR1 (31/12/2015)

YEAR 2016

<=YEAR1 (31/12/2016)

YEAR 2017

<=YEAR1 (31/12/2017)

MONTH 1

Jan

MONTH2

Feb

MONTH 3

Mar

MONTH 4

Apr

MONTH 5

May

MONTH 6

Jun

MONTH 7

Jul

MONTH 8

Aug

MONTH 9

Sep

MONTH 10

Oct

MONTH 11

Nov

MONTH 12

Dec

For the current year we are using monthly file as monthly partition. For next year Jan Partition will be merged in YEAR 2017 and will be reused for JAN 2018 and for all other files as we move ahead.

We have no issues merging the monthly files into the YEAR 2017 partition, but as we move along we like to move the monthly data from Year 2017 to 2016 to 2015 to PRIMARY partition

How can this be achieved



cannot see any sql server jobs - sql server 2008

$
0
0
Hi,

There are several SQL server jobs which are running as per their schedule daily\weekly and all... when i double click on 'Job Activity Monitor' or when i right click on 'Job Activity Monitor' and select 'View Job Activity' i cannot see any jobs... but when i right click on 'Jobs' folder and select 'View History' it shows the history of all the jobs....

Sql server 2008 SP4 (10.0.6241.0) is my sql version...

any help is appreciated..

thanks in advance....

VVinayPrasad

Polybase HDFS CreateRecord Reader Error

$
0
0

Hi 

I am trying to pull data from HDFS using an external table I am getting the following error

Cannot execute the query "Remote Query" against OLE DB provider "SQLNCLI11" for linked server "(null)". 110802<g class="gr_ gr_137 gr-alert gr_gramm gr_inline_cards gr_run_anim Style replaceWithoutSep" data-gr-id="137" id="137">;An</g> internal DMS error occurred that caused this operation to fail. Details: Exception: Microsoft.SqlServer.DataWarehouse.<g class="gr_ gr_133 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="133" id="133">DataMovement</g>.Common.ExternalAccess.HdfsAccessException, Message: Java exception raised on call to HdfsBridge_CreateRecordReader. Java exception message:
HdfsBridge::CreateRecordReader - Unexpected error encountered creating the record reader.: Error [HdfsBridge::CreateRecordReader - Unexpected error encountered creating the record reader.] occurred while accessing external file [][0].

Has anyone come across this before, any help would be really appreciated 

Thanks

Getting error trying to connect to local server

$
0
0

I installed SQL Server 2016 Developer Edition on my work laptop with Windows 10 Enterprise. Everything worked fine after I installed it.  I downloaded the lastest version of SQL Server Management Studio (SSMS) V 17.9 and everything still worked fine.  I setup SSMS to connect to the local server and that worked fine.  The following week it stopped working and I get this error message:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Failed to connect to server HOL-69CYGM2. (Microsoft.SqlServer.ConnectionInfo)

------------------------------
ADDITIONAL INFORMATION:

The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following:  the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=233&LinkId=20476

------------------------------

No process is on the other end of the pipe

------------------------------
BUTTONS:

OK
------------------------------

What could have happened?

I can access other servers with no problems.  Also our company has taken local admin permissions from our domain user account that we use to login our computers  and we need to get a temporary local admin user to install software.  I used the default users when installing SQL Server on my laptop.

Fred


Who will be announced as the next SQL Server Guru? Read more about October 2018 competition!!

$
0
0


What is TechNet Guru Competition?

Each month the TechNet Wiki council organizes a contest of the best articles posted that month. This is your chance to be announced as MICROSOFT TECHNOLOGY GURU OF THE MONTH!

One winner in each category will be selected each month for glory and adoration by the MSDN/TechNet Ninjas and community as a whole. Winners will be announced in dedicated blog post that will be published in Microsoft Wiki Ninjas blog, a tweet from the Wiki Ninjas Twitter account, links will be published at Microsoft TNWiki group on Facebook, and other acknowledgement from the community will follow.

Some of our biggest community voices and many MVPs have passed through these halls on their way to fame and fortune.

If you have already made a contribution in the forums or gallery or you published a nice blog, then you can simply convert it into a shared wiki article, reference the original post, and register the article for the TechNet Guru Competition. The articles must be written in October 2018 and must be in English. However, the original blog or forum content can be from before October 2018.

Come and see who is making waves in all your favorite technologies. Maybe it will be you!


Who can join the Competition?

Anyone who has basic knowledge and the desire to share the knowledge is welcome. Articles can appeal to beginners or discusse advanced topics. All you have to do is to add your article to TechNet Wiki from your own specialty category.


How can you win?

  1. Please copy/Write over your Microsoft technical solutions and revelations to TechNetWiki.
  2. Add a link to your new article on THIS WIKI COMPETITION PAGE (so we know you've contributed)
  3. (Optional but recommended) Add a link to your article at the TechNetWiki group on Facebook. The group is very active and people love to help, you can get feedback and even direct improvements in the article before the contest starts.

Do you have any question or want more information?

Feel free to ask any questions below, or Join us at the official MicrosoftTechNet Wiki groups on facebook. Read More about TechNet Guru Awards.

If you win, people will sing your praises online and your name will be raised as Guru of the Month.


PS: Above top banner came from Baishakhi Banerjee.

Thanks,
Kamlesh Kumar

If my reply is helpful please mark as Answeror vote as Helpful.

My blog | Twitter | LinkedIn

SQL Server Internals training

Copying file from one table to another table

$
0
0
  1. How do I Copy the following objects below  from SNO_TEST DB to SNO_TMP

 The tables of ‘ADMIN_ErrorLog’ , ‘AdminMissingFiles’  &  ‘SNO_QAErrorCategory’

Thanks.

sql server executes which join first(inner or left or right)

$
0
0

my interview question is

select * from
a inner join b
on a. column=b.column
left join c
on a.column=c.column
right join d
on c.column=d.column 

i have a query like above, what are the order of joins executing by sql server

where first is left join,second is right join and third is inner join

or any other order and why?


tsrkreddy


Replica performance counters are wrong

$
0
0

Hi,

I manage several instances of SQL in several AlwaysOn clusters and i am now extending my monitoring system to all hosts.

While trying to monitor the growth of the databases I came across with something very weird, the data that I am collecting of the primary replica and secondary replica are different for the same replicated databases. On the replica, the value does not change even if I enlarge the file on the primary replica. The performance counter of 'Data File(s) Size (KB)' on the replica is not changed and in the master it shows the correct value.

On both instances if you access the database information with SSMS, the numbers are equal on both sides but the perfcounter on the replica shows the old database size.

How can I fix this problem ? I need to check DB size on both systems and preferably by performance counter to minimize the SQL server load.

Unable To Install Database Engine

$
0
0

From last one week i am installing and unistalling sql server in windows 10 but is always showing an two three messages while installing 1.Attemp to perform unauthorized access 2. SSIS exception 

Than at last data base engine failed ,Rs failed,DQ ,FullText,Replication,IS all are failed 

Detail File :

(01) 2018-10-06 17:29:16 Slp: Prompting user if they want to retry this action due to the following failure:
(01) 2018-10-06 17:29:16 Slp: ----------------------------------------
(01) 2018-10-06 17:29:16 Slp: The following is an exception stack listing the exceptions in outermost to innermost order
(01) 2018-10-06 17:29:16 Slp: Inner exceptions are being indented
(01) 2018-10-06 17:29:16 Slp: 
(01) 2018-10-06 17:29:16 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
(01) 2018-10-06 17:29:16 Slp:     Message: 
(01) 2018-10-06 17:29:16 Slp:         Attempted to perform an unauthorized operation.
(01) 2018-10-06 17:29:16 Slp:     HResult : 0x84bb0001
(01) 2018-10-06 17:29:16 Slp:         FacilityCode : 1211 (4bb)
(01) 2018-10-06 17:29:16 Slp:         ErrorCode : 1 (0001)
(01) 2018-10-06 17:29:16 Slp:     Data: 
(01) 2018-10-06 17:29:16 Slp:       WatsonData = netfxperf.dll@OpenPerformanceData@CollectPerformanceData@ClosePerformanceData
(01) 2018-10-06 17:29:16 Slp:       DisableRetry = true
(01) 2018-10-06 17:29:16 Slp:     Inner exception type: System.UnauthorizedAccessException
(01) 2018-10-06 17:29:16 Slp:         Message: 
(01) 2018-10-06 17:29:16 Slp:                 Attempted to perform an unauthorized operation.
(01) 2018-10-06 17:29:16 Slp:         HResult : 0x80070005
(01) 2018-10-06 17:29:17 Slp:         Stack: 
(01) 2018-10-06 17:29:17 Slp:                 at Microsoft.SqlServer.Configuration.Sco.PerformanceCounter.LoadPerformanceCounter(String symbolInstallPath, String counterPrefixServiceName)
(01) 2018-10-06 17:29:17 Slp:                 at Microsoft.SqlServer.Configuration.Sco.PerformanceCounter.RegisterPerformanceCounterCore(String libraryFileName, String openFunction, String collectionFunction, String closeFunction, String symbolInstallPath, String counterPrefixServiceName)
(01) 2018-10-06 17:29:17 Slp:                 at Microsoft.SqlServer.Configuration.Sco.PerformanceCounter.RegisterPerformanceCounter(String libraryFileName, String openFunction, String collectionFunction, String closeFunction, String symbolInstallPath)
(01) 2018-10-06 17:29:17 Slp: ----------------------------------------
(01) 2018-10-06 17:30:53 Slp: User has chosen to cancel this action
(01) 2018-10-06 17:30:53 SSIS: ERROR: Failed to set up SSIS service performance counters. Exception: Microsoft.SqlServer.Configuration.Sco.ScoException: Attempted to perform an unauthorized operation. ---> System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.

what to do next 

Unable to access Sybase databases from SQL Server Linked server.

$
0
0

Hi Experts,

Test connection to the Sybase Linked server is successful and also the ODBC is connection is succeeded. But when I expand the Linked server and browse tables, getting below error. Please help to trouble the issue.

Thanks.


Vinai Kumar Gandla

New features in SQL server 2017?

$
0
0

Is there any link with all new features added to sql server 2017? 

A list of new features with their explanation would be very helpful.

Linked server, SQL agent jobs and domain account

$
0
0

Hi all. 

I have a SQL server agent job that inserts data into a local table based on a select.

The select pulls data via. a linked server. 

The linked server is configured to authenticate by: "Be made using the login's current security context"

Are there any way to make the job step authenticate using a SPECIFIC domain account andnot the agent service account ? 

Thanks :) 

Reading rows from the sys.sysobjvalues system table for a database - SQL Server 2016

$
0
0

Hi,

I need to verify the data inside the system table named sys.sysobjvalues for a my database: does it exist the corresponding system view to do it, please?

Thanks

SQL Server on-premise for IoT data - How to scale up?

$
0
0

I would like to feed IoT data from 100k devices sending 1 small message every 1min to SQL Server and then query with Power BI.

How to scale up SQL Server on-premise? How massive infra is needed? What it means for licensing and pricing? 


Kenny_I


Microsoft.ACE.OLEDB.16.0 provider is not registered on the local machine. (System.data)

$
0
0

Trying to import data from Excel is giving this message.

Office365 64-bit

Here's what I tried:

1) I installed the 64-bit Access database engine 2016

2) I tried the 2010 & 2007 versions as well

3) I reinstalled Office365

I'm out of ideas. What else could be going on here?

How to set MAX SERVER MEMORY

$
0
0
Hi All,

This has been long lasting question for me. Its regarding MAX SERVER MEMORY setting.
How do we or what value to be set and on what basis we will be setting high or low values for max server memory setting, when we are supposed install multiple instances or running multiple features like SSIS,SSRS,SSAS on the same machine?

Thanks,

Sam


Issue with CLR_AUTO_EVENT wait events

$
0
0

Hi All,

For past couple of days,database is running very low and we are frequently getting "CLR_AUTO_EVENT" as the maximum wait time always . SQL server version is Microsoft SQL Server 2016 (SP2-CU2) (KB4340355) . What can be the primary troubleshooting steps to fix this issue.

Appreciate your assistance .

Best Regards,
Sandy


Reg:Identity Values changed Abnormally..

$
0
0

Hi Experts,

one of the table in my Azure database called table_A has been created with Primary column and Identity (1,1) .

but after one month ,whaen i write the select * from table_A ,the identity value obnormally increment by 8.

can i know the root cause for this ....in general sql server 2016 ,when we restart the server,the identity column would be  incremented by 100 or 1000 or 10000 based upont data type (it depends upon int,bigint and small int)..is there is same issue along with Azure database also.

I am attaching the screenshot .

Please provide your valuable feed back regarding this issue.

Thanks in Advance.

What is the difference between between SPID and session_id in SQL Server

$
0
0

Hi Experts,

generally in sql server we are using the terms SPID and session_id .

can i know what is the difference between them ?

Thanks.

Viewing all 15872 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>