Hi
I downloaded sql server 2012 on windows 10 and when I am trying to connect it is giving this error.I checked the instance name correct.
------------------------------
ADDITIONAL INFORMATION:
BUTTONS:
------------------------------
Hi
I downloaded sql server 2012 on windows 10 and when I am trying to connect it is giving this error.I checked the instance name correct.
Hi,
I am trying to find the download location of SQL Server 2008 R2 Native Client. I can find R1 and R3 but not R2. Can someone provide me the location to the sqlcli.msi for this release or do I have to use the full version of SQL Server to extract it?
Thanks,
Mike Myers
Hi
I am using Java 8.1 at my home. I have coded a program in Java, the purpose of which is to connect to and manipulate data in a database in SQL Server Express 2012. The problem I have is; I can’t connect to it when I run the program.
It is not because of the JDK I’m using, for even though I have Netbeans 8.1, it uses JDK 1.7, meaning that ODBC-JDBC Bridge will work.
The Database is fully created and related. The code I have written works fine, as well as the queries I have included. I know how to create DSNs and the connection strings required in Java. I know because I can connect to the Database absolutely fine in School.
I have though identified why it doesn’t work though.
The ODBC driver that I use for my DSN, for connecting to my Database is different to the one that my SQL Server Instance uses. I have only known how to create DSNs for a month. SQL Server Management Studio I have been using for a bit longer though.
At the moment my SQL Server instance, which is called “SQLEXPRESS2012”, uses version ODBC Driver 11.0.2100.60.
However, my ODBC Data Sources App only shows 10.00.10240.16384 in its list of drivers, as you can see below.
Is there anyway I can either:
By the way, I apologise for mentioning Java in this, but that's what I'm using to connect to the database. I've been having this problem for 3 months now.
I have two tables. Lets call them Account and Transaction. For the purposes of this example, the Account table contains only an ACCOUNT (account Number). The Transaction Table contains ACCOUNT (account Number) and TRANDATE (transaction date).
The rows in the Account table are: 1, 2, 3
Rows in the Transaction table are: (1,2/1/2016), (1,2/2/2016), (2,2/1/2016), (2,2/2/2016), (3,2/1/2016), (3,2/2/2016)
So if I do a left outer join, selecting Account.ACCOUNT, Transaction.TRANDATE I get
1,2/1/2016
1,2/2/2016
2,2/1/2016
2,2/2/2016
3,2/1/2016
3,2/2/2016
What I would like to get is only the first row of the Transaction table joined to the account so that it would look like this:
1,2/1/2016
2,2/1/2016
3,2/1/2016
And I guess if this is doable, then there should be a way to get only the last date for each account in a select of only the Transaction table as well.Anybody got code that will do this? It would be MOST helpful if it did not rely on SQL Server only options. I need this to run on another DB Provider as well.
Mike
hi i have this database
what i am trying to accomplished is to display only items that has been remove,but not add back ,
so i dont want to see the serial numbers in red color , so that is what i need help with , not to display the remove and add
item
| item_description | serial_number | trans_type | trans_description | is_receive_or_ship | line_item_id | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
150 | Remove | T | 14366 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
100 | Add | F | -1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
150 | Remove | T | 14366 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
100 | Add | F | -1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
150 | Remove | T | 14815 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
150 | Remove | T | 14366 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
100 | Add | F | -1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
150 | Remove | T | 26199 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
150 | Remove | T | 14363 |
leonel
This is the message i am getting when i click on management studio.
---------------------------
Microsoft SQL Server Management Studio
---------------------------
Evaluation period has expired. For information on how to upgrade your evaluation software please go to http://www.microsoft.com/sql/howtobuy
---------------------------
OK
---------------------------
sql server is also stopped,
now my question is how do i get backup of databases that were on SQL server 2008?
Thanks in advance
I have a requirement where I need a sql authenticated user on InstanceA to select from a table on a database on InstanceB.
I tried to set-up a linked server but I get the error
Msg 7416, Level 16, State 2, Line 1
Access to the remote server is denied because no login-mapping exists.
Does anyone know how to fix this ?
thanks
Hi
After I connected to sql server when I click on "New Query" it is giving me this error
ALTER TABLE CUSTOMER
ADD CONSTRAINT CUSTOMER_SP_FK FOREIGn KEY (NickName)
REFERENCES SALESPERSON (NickName)
ON UPDATE CASCADE;
I have found a bug in libmsodbcsql-11.0.so.2270.0 which causes our application to crash very consistently. How can I send a bug report with the information I have to help your team fix this problems?
The crash occurs when there are frequent network reconnections to the SQL server and the software has many different threads (+- 100) all with database connections.
It seems the crash happens in the call to SQLGetDescFieldW inside
the library. That function then calls SQLFreeHandle which triggers
the destruction of strings, which is where the code really crashes:
13c0b5: 41 89 c4 mov %eax,%r12d 13c0b8: 0f 85 39 ff ff ff jne 13bff7 <std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()+0x531a7> 13c0be: 48 8b 45 20 mov 0x20(%rbp),%rax <---- CRASH 13c0c2: 48 89 44 24 28 mov %rax,0x28(%rsp) 13c0c7: 41 8b 45 00 mov 0x0(%r13),%eax 13c0cb: 25 02 00 02 00 and $0x20002,%eax 13c0d0: 3d 02 00 02 00 cmp $0x20002,%eax 13c0d5: 0f 84 b5 06 00 00 je 13c790 <std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::~basic_stringbuf()+0x53940> 13c0db: 48 8b 54 24 28 mov 0x28(%rsp),%rdx
Hi All,
Could you please help me with below scenario to write a query,
I have table in below format
id | column1 |
1 | A;B;C |
2 | B;C |
3 | A |
4 | C;B |
5 | C;B |
I need the count for the number of occurrence of the values A,B,C.
Could you guyz please respond asap.
Thanks,Syed
Sheji Nikhil
Hi guys,
I am currently facing a bug in libmsodbcsql-11.0.so.2260.0 which causes our application running on Linux Suse to crash sporadically.
It seems the crash happens while trying to connect to the db server, more particularly in the call to SQLGetDescFieldW inside the library. That function then calls SQLAllocHandle which triggers the destruction of strings, which is where the code really crashes.
We are using unixODBC 2.3.0 as recommended by MSFT website and Threading strategy is set to 0 (default is 3 and leads to a multithreading known issue).
Any help or comment is welcome.
Regards,
Hi All,
I have C-tree Database file and i want to import data to SQL Server 2008.
I have two file with me.
Can anyone help me in right direction...
Thanks in advance...
Hi,
I've looked through every solution to this and tried them all without success. Whether I tried them correctly remains to be seen.
I have installed Microsoft.ACE.OLEDB.12.0 provider on my remote machine successfully because when I run this ON THE ACTUAL REMOTE BOX:
select
*
from
OPENROWSET
('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0 Xml;IMEX=1;
Database=\\longunc\Pathologist (04.05.12).xlsx;',
'SELECT * FROM [Sheet1$]')
;
it dutifully returns correctly. This query is wrapped in a stored proc. The remote box service is run under my domain login.
Now I want to run it on the remote box from my local install of SSMS and after connecting the remote sql server I get this error:
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
Any ideas? There's a myriad of other questions relating to this so I'm on the point of giving up but there may be something obvious I'm overlooking.... I've been down the file permissions route without any success.
Remote machine is Windows 2003 Server 32bit
I'm on Windows XP SP3
Cheers
We are seeing the following in our SQLAgent log every minute. I cannot find any information anywhere about this error message.
[298] SQLServer Error: 599, WRITE: The length of the result exceeds the length limit (2GB) of the target large type. [SQLSTATE 42000] (LogToTableWrite)
Microsoft JDBC Driver (4.2 & 6) - Prepared Statements with only a single query leak memory on server
This is an issue only when (selectMethod=direct).
The following Java Code generates a connection that constantly uses more and more memory, until either the loop runs out or the server runs out of resources.
If executeQuery is called twice on the Prepared Statement, then there is no memory leak. See commented out lines
Activity Monitor on SQL Server can be used to see the memory slowly rising
Is this something I have coded wrong or an actual problem.
SQL Server versions tested
import java.sql.*; public class BugTester { public static String buildURL () { String myURL; myURL = "jdbc:sqlserver://<server>"; myURL += ";database=<database>"; myURL += ";selectMethod=direct"; myURL += ";responseBuffering=adaptive"; myURL += ";lastUpdateCount=true"; myURL += ";encrypt=false"; myURL += ";sendStringParametersAsUnicode=false"; myURL += ";disableStatementPooling=true"; System.out.println(myURL); return myURL; } public static void main (String[] args) { Connection c = null; PreparedStatement pstmt = null; ResultSet rs = null; try { Class.forName ("com.microsoft.sqlserver.jdbc.SQLServerDriver"); c = DriverManager.getConnection (buildURL (), "sa", "password"); for (int i = 0; i < 10000; i++) { pstmt = c.prepareStatement("SELECT 1"); try { rs = pstmt.executeQuery (); rs.close (); // rs = pstmt.executeQuery (); // rs.close (); pstmt.close (); } finally { try { if (null != rs) { rs.close (); } } catch (SQLException e3) { e3.printStackTrace(); } try { if (null != pstmt) { pstmt.close (); } } catch (SQLException e4) { e4.printStackTrace(); } } try { Thread.sleep(100); } catch(InterruptedException ex) { Thread.currentThread().interrupt(); } } c.close (); } catch (SQLException e) { e.printStackTrace(); } catch (Exception e1) { e1.printStackTrace(); } finally { try { if (null != rs) { rs.close (); } } catch (SQLException e6) { e6.printStackTrace(); } try { if (null != pstmt) { pstmt.close (); } } catch (SQLException e7) { e7.printStackTrace(); } try { if (null != c) { c.close (); } } catch (SQLException e5) { e5.printStackTrace (); } } } }
I can no longer connect to sql server through vpn after installing the latest windows 10 update. I have tried everything I can find on the web including disabling the firewall and nothing works. When I try and open sql I get this error message:
Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=18788; handshake=9906; (.Net SqlClient Data Provider)
Can anyone help? Please.
I can no longer connect to sql server through vpn after installing the latest windows 10 update. I have tried everything I can find on the web including disabling the firewall and nothing works. When I try and open sql I get this error message:
Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=18788; handshake=9906; (.Net SqlClient Data Provider)
Can anyone help? Please.
Hello there,
I'm writing a small program that needs a database to store information. Currently I'm abuseing an excel file to store the data, since for a first try it seems the easiest way to me as a beginner. With basic functionalities the program is working fine now.
I decided to program it as a UWP-App to be able to adapt it also to mobile devices later on. In fact I was kind of suprised that something like OLEDB works for this. Installing my former working software on an other computer I found out, it unfortunately doesn't. I had to install the Access Database Engine first, to make it work.
Since I want to supply it possibly also in the store when I like the result, to me this seems not to be a good solution.
Nower state:
Software is running on PC and accesses an excel file, that is used as database, via SQL queries. I expect performance won't be an issue. I would be quiet suppriesed if any user would make it to bring 6000 entries ore more (maximum 8 tables of this size) to one table. Also I think that maximum 32 tables will be sufficient (depends a bit on the layout that I will use for future functions).
My plan is now to find a Database that can be accessed with SQL-queries and runs under windows on PC and Mobile systems. Because I also think about possibly to supply a comercial version (or at least add ons) of the program, licensing is an issue. Furhter
it would be great if there would be a possibility to adapt things to Android later on (sorry Appel ;) ). Unfortunately I have no clue about what to use or look for. My first ideas where some open XML stuff (which hase shown to be kind of complicated for my
use) and OLEDB that seems to cause problems on installation(aditional database engine must be installed separately). I also read that there is something that is called JSON (but till now I only know that it's used to store and/or transfer data). Also Unicode
caracters should be supported. Most important to me are latin letters in all variations (é,è,ê,ã,ó,ö,ä,ç etc.) but also arabic and cyrillic ones.
It would be great if anybody can give me a hint in which direction I have to search and what way to store my data is the best one for my use.
Thanks in advance