Access and SQL Server Database Developer

This may be a silly question, but I want to make sure I'm correct. I have a query I created in SQL Server Express 2008 R2 which created a file with the sql extension.
I'm using Access 2010 and I want to link the this sql file with the extension of sql in Access.  I can link to tables and views from SQL Server and able to view it in Access, but I can't open the sql file from Access.  I'm thinking I can only
view tables and views in SQL Server from Access?
If that's the case can someone explain what I doing wrong when I try to care a view with a filter and sort:
This is the error message is get:
Msg 1033, Level 15, State 1, Procedure VideosListFilter, Line 7
The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.
use Videos;
go
create view Inventory.VideosListFilter
as
select Type, VideoName
from Inventory.Videos
where Type <> 'xxxx'
and Type <> 'DVD'
order by Type desc , VideoName asc
Hope someone can help?

The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified.
Hello Xavier,
in MS Access you can use an ORDER BY clause in a view without any restriction; but not in SQL Server, here we have several restriction; even because an ORDER BY in a view don't make sense! You have to use a
TOP clause like:
create view Inventory.VideosListFilter
as
select TOP 100 PERCENT Type, VideoName
from Inventory.Videos
where Type <> 'xxxx'
and Type <> 'DVD'
order by Type desc , VideoName asc
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • Configure Synchronization Connections An error has occurred while accessing the SQL Server database

    Hi,
    i am getting following error message
    Central Administration --> Synchronization Connections
    An error has occurred while accessing the SQL Server database or the SharePoint Server Search service.
    If this is the first time you have seen this message, try again later. If this problem persists, contact your administrator.
    Central Administration -->  Manage Profile Service: User Profile Service Application --> Manage User Properties
    Error
    An unexpected error has occurred.
    Troubleshoot issues with Microsoft SharePoint Foundation.
    Correlation ID: 3bce5a11-f2dc-4788
    Please tell how to fix it.
    iffi

    Event ID 5555 -> i have change the Timer jobs recycling time AM to PM
    for  User profile page not display  number of count in the page first check services , connection , 
    IISRESET /NOFORCE   /  timer services restart 
    Deepesh Yevle MCTS

  • Accessing an SQL Server Database created by MS Access Web App

    1.I have tried to use MS Access Web App which has created an SQL Server Database. I would like to access the database using SQL Management Studio Express 2014.  In access I can see the server name on windows.net and the database name but I do not know
    how to connect to this using SSMS Express 2014. Can you please help?                                                                         
    2.I also want to view our emails on MS Exchange in real-time. In MS Access Jet I can do this by linking the folders as tables. Is there a way of doing this in SQL Server? If not can I have a separate MS Access Jet with linked tables which I can then link into
    my SQL Server as an OLEDB Linked server?                                                                                                                         
    3. If going for the Linked Table in Jet solution where can I store it so that my MS Access Web App will have access to it?

    Hi gkounis,
    I don't think it support link MS Access Jet with linked tables in SQL Server.
    Can you share some info about your MS Access Web App?
    Regards,
    Black

  • Oracle and SQL Server Database Link errors

    I am having following error messages while setting up the ODBC connection. I want to access SQL Server tables from within Oracle8i. I have followed all the instruction of Oracle Generic Connectity document and have tested ODBC connection with ODBCPING as well as with TNSPING. Have created Database Link also within Oracle for SQL Server. But when I access the SQL Server table from within Oracle I get the following error messages.
    ORA-12500: TNS:listener failed to start a dedicated server process
    Could any body suggestion the solution please.
    Thanks and regards,
    Ghulam Mallah

    There is a Heterogenous Services/ Generic Connectivity forum that is probably going to have a lot more people familiar with these issues than you'll find in this forum. I would suggest posting over there.
    Justin

  • ASP and SQL Server Database

    My AW7 pieces send user data to asp pages which relay the
    data on to a SQLServer 2000 database. All works well with one
    exception: when a new record is created, any spaces in the string
    containing the user's name are deleted.
    When AW7 sends the variable User_Name="John Doe" to the asp
    page, it issues an SQL ADD command. The result: the SQLServer table
    that receives the data displays the name JohnDoe. What might cause
    the space to be deleted?
    The asp page contains this code:
    <%@ Language=VBScript %>
    <%
    Option Explicit
    Response.expires = 0
    dim conn, SQL, strConn, strSite, strUserName, strUserID,
    ProcApproach, Rqmts1, Rqmts2, Rqmts3, Rqmts4, Rqmts5
    dim CorT1, CorT2, CorT3, CorT4, CorT5, Audit1, Audit2,
    Audit3, Audit4, Audit5, RoleMgrs1, RoleMgrs2, RoleMgrs3, RoleMgrs4,
    RoleMgrs5
    dim RoleMgrs6, RoleMgrs7, RoleMgrs8, ScoreTotal,
    ModComplIntro, QComplProcApproach, QComplRqmts, QComplCorT,
    QComplAudit, QComplRoleMgrs
    'Get data from AW. IIS examples recommend the HTMLEncode
    'method of the ASP Server object but the method doesn't work
    w/ AW.
    'Use Request.Form method.
    strSite=Request.Form("Site")
    strUserName=Request.Form("User_Name")
    strUserID=Request.Form("User_ID")
    ProcApproach=Request.Form("Proc_Approach")
    Rqmts1=Request.Form("Rqmts_1")
    Rqmts2=Request.Form("Rqmts_2")
    Rqmts3=Request.Form("Rqmts_3")
    Rqmts4=Request.Form("Rqmts_4")
    Rqmts5=Request.Form("Rqmts_5")
    CorT1=Request.Form("CorT_1")
    CorT2=Request.Form("CorT_2")
    CorT3=Request.Form("CorT_3")
    CorT4=Request.Form("CorT_4")
    CorT5=Request.Form("CorT_5")
    Audit1=Request.Form("Audit_1")
    Audit2=Request.Form("Audit_2")
    Audit3=Request.Form("Audit_3")
    Audit4=Request.Form("Audit_4")
    Audit5=Request.Form("Audit_5")
    RoleMgrs1=Request.Form("RoleMgrs_1")
    RoleMgrs2=Request.Form("RoleMgrs_2")
    RoleMgrs3=Request.Form("RoleMgrs_3")
    RoleMgrs4=Request.Form("RoleMgrs_4")
    RoleMgrs5=Request.Form("RoleMgrs_5")
    RoleMgrs6=Request.Form("RoleMgrs_6")
    RoleMgrs7=Request.Form("RoleMgrs_7")
    RoleMgrs8=Request.Form("RoleMgrs_8")
    ScoreTotal=Request.Form("Score_Total")
    ModComplIntro=Request.Form("Mod_Compl_Intro")
    QComplProcApproach=Request.Form("Q_Compl_ProcApproach")
    QComplRqmts=Request.Form("Q_Compl_Rqmts")
    QComplCorT=Request.Form("Q_Compl_CorT")
    QComplAudit=Request.Form("Q_Compl_Audit")
    QComplRoleMgrs=Request.Form("Q_Compl_RoleMgrs")
    'Build SQL INSERT command.
    SQL="INSERT INTO User_Data_TS VALUES ('" & strSite &
    "','" & strUserName & "','" & strUserID & "',"
    SQL=SQL & ProcApproach & "," & Rqmts1 & ","
    & Rqmts2 & "," & Rqmts3 & "," & Rqmts4 &
    "," & Rqmts5 & ","
    SQL=SQL & CorT1 & "," & CorT2 & "," &
    CorT3 & "," & CorT4 & "," & CorT5 & ","
    SQL=SQL & Audit1 & "," & Audit2 & "," &
    Audit3 & "," & Audit4 & "," & Audit5 & ","
    SQL=SQL & RoleMgrs1 & "," & RoleMgrs2 & ","
    & RoleMgrs3 & "," & RoleMgrs4 & "," & RoleMgrs5
    & "," & RoleMgrs6 & "," & RoleMgrs7 & "," &
    RoleMgrs8 & "," & ScoreTotal & ","
    SQL=SQL & "'" & ModComplIntro & "','" &
    QComplProcApproach & "','" & QComplRqmts & "','" &
    QComplCorT & "','" & QComplAudit & "','" &
    QComplRoleMgrs & "');"
    'Create a connection object which opens a connection to the
    server
    'Establish a link to the SQL Server database with strConn
    'Use the Execute method to send the SQL query to database
    'Close recordset and db connection as early as possible
    strConn="Provider=sqloledb; Data Source=BUSPC\QS; Initial
    Catalog=ISO_TS; User ID=sa; Password=xxxxx"
    set conn=Server.CreateObject("ADODB.Connection")
    conn.open strConn
    conn.Execute(SQL)
    conn.close
    set conn = nothing
    %>
    The SQLServer table uses the character data type for the
    User_Name variable.
    Thanks.
    Jim

    Seems like I have seen this before, but I can't recall what
    caused it. Try
    URL Encoding everything before you send it using the
    URLEncode() function.
    HTH;
    Amy
    "James_101" <[email protected]> wrote in
    message
    news:[email protected]...
    > My AW7 pieces send user data to asp pages which relay
    the data on to a
    > SQLServer 2000 database. All works well with one
    exception: when a new
    > record
    > is created, any spaces in the string containing the
    user's name are
    > deleted.
    >
    > When AW7 sends the variable User_Name="John Doe" to the
    asp page, it
    > issues an
    > SQL ADD command. The result: the SQLServer table that
    receives the data
    > displays the name JohnDoe. What might cause the space to
    be deleted?
    >
    > The asp page contains this code:
    >
    > <%@ Language=VBScript %>
    > <%
    > Option Explicit
    > Response.expires = 0
    >
    > dim conn, SQL, strConn, strSite, strUserName, strUserID,
    ProcApproach,
    > Rqmts1,
    > Rqmts2, Rqmts3, Rqmts4, Rqmts5
    > dim CorT1, CorT2, CorT3, CorT4, CorT5, Audit1, Audit2,
    Audit3, Audit4,
    > Audit5,
    > RoleMgrs1, RoleMgrs2, RoleMgrs3, RoleMgrs4, RoleMgrs5
    > dim RoleMgrs6, RoleMgrs7, RoleMgrs8, ScoreTotal,
    ModComplIntro,
    > QComplProcApproach, QComplRqmts, QComplCorT,
    QComplAudit, QComplRoleMgrs
    >
    > 'Get data from AW. IIS examples recommend the HTMLEncode
    > 'method of the ASP Server object but the method doesn't
    work w/ AW.
    > 'Use Request.Form method.
    >
    > strSite=Request.Form("Site")
    > strUserName=Request.Form("User_Name")
    > strUserID=Request.Form("User_ID")
    > ProcApproach=Request.Form("Proc_Approach")
    > Rqmts1=Request.Form("Rqmts_1")
    > Rqmts2=Request.Form("Rqmts_2")
    > Rqmts3=Request.Form("Rqmts_3")
    > Rqmts4=Request.Form("Rqmts_4")
    > Rqmts5=Request.Form("Rqmts_5")
    > CorT1=Request.Form("CorT_1")
    > CorT2=Request.Form("CorT_2")
    > CorT3=Request.Form("CorT_3")
    > CorT4=Request.Form("CorT_4")
    > CorT5=Request.Form("CorT_5")
    > Audit1=Request.Form("Audit_1")
    > Audit2=Request.Form("Audit_2")
    > Audit3=Request.Form("Audit_3")
    > Audit4=Request.Form("Audit_4")
    > Audit5=Request.Form("Audit_5")
    > RoleMgrs1=Request.Form("RoleMgrs_1")
    > RoleMgrs2=Request.Form("RoleMgrs_2")
    > RoleMgrs3=Request.Form("RoleMgrs_3")
    > RoleMgrs4=Request.Form("RoleMgrs_4")
    > RoleMgrs5=Request.Form("RoleMgrs_5")
    > RoleMgrs6=Request.Form("RoleMgrs_6")
    > RoleMgrs7=Request.Form("RoleMgrs_7")
    > RoleMgrs8=Request.Form("RoleMgrs_8")
    > ScoreTotal=Request.Form("Score_Total")
    > ModComplIntro=Request.Form("Mod_Compl_Intro")
    > QComplProcApproach=Request.Form("Q_Compl_ProcApproach")
    > QComplRqmts=Request.Form("Q_Compl_Rqmts")
    > QComplCorT=Request.Form("Q_Compl_CorT")
    > QComplAudit=Request.Form("Q_Compl_Audit")
    > QComplRoleMgrs=Request.Form("Q_Compl_RoleMgrs")
    >
    > 'Build SQL INSERT command.
    >
    > SQL="INSERT INTO User_Data_TS VALUES ('" & strSite
    & "','" & strUserName &
    > "','" & strUserID & "',"
    > SQL=SQL & ProcApproach & "," & Rqmts1 &
    "," & Rqmts2 & "," & Rqmts3 & ","
    > &
    > Rqmts4 & "," & Rqmts5 & ","
    > SQL=SQL & CorT1 & "," & CorT2 & ","
    & CorT3 & "," & CorT4 & "," & CorT5 &
    > ","
    > SQL=SQL & Audit1 & "," & Audit2 & ","
    & Audit3 & "," & Audit4 & "," &
    > Audit5 &
    > ","
    > SQL=SQL & RoleMgrs1 & "," & RoleMgrs2 &
    "," & RoleMgrs3 & "," & RoleMgrs4
    > &
    > "," & RoleMgrs5 & "," & RoleMgrs6 & ","
    & RoleMgrs7 & "," & RoleMgrs8 &
    > "," &
    > ScoreTotal & ","
    > SQL=SQL & "'" & ModComplIntro & "','" &
    QComplProcApproach & "','" &
    > QComplRqmts & "','" & QComplCorT & "','"
    & QComplAudit & "','" &
    > QComplRoleMgrs
    > & "');"
    >
    > 'Create a connection object which opens a connection to
    the server
    > 'Establish a link to the SQL Server database with
    strConn
    > 'Use the Execute method to send the SQL query to
    database
    > 'Close recordset and db connection as early as possible
    >
    > strConn="Provider=sqloledb; Data Source=BUSPC\QS;
    Initial Catalog=ISO_TS;
    > User
    > ID=sa; Password=xxxxx"
    > set conn=Server.CreateObject("ADODB.Connection")
    > conn.open strConn
    >
    > conn.Execute(SQL)
    >
    > conn.close
    > set conn = nothing
    >
    > %>
    >
    > The SQLServer table uses the character data type for the
    User_Name
    > variable.
    >
    > Thanks.
    >
    > Jim
    >

  • Syn. between Oracle, Access and SQL Server

    In my system, it involved three different db i.e. Oracle, MS Access, MS SQL Server. Is there way to perform syn. automatically when the data of one of the db is changed?
    p.s. Three DB is located on different NT Server machine.

    This is a good starting point:
    http://searchdatabase.techtarget.com/featuredTopic/0,290042,sid13_gci801069,00.html

  • Accessing MS Sql Server with Java classes - problem connecting to socket

    I found an example at this location which uses java classes to connected to MS Sql Server.
    http://search400.techtarget.com/tip/1,289483,sid3_gci1065992,00.html
    --bummer - it is a login location - so I will include the article
    Anyway, the example is using Websphere, but I am still on Jbuilder (will get wsad soon). So I planted the classes from the example in
    C:\Borland\JBuilder\jkd1.4\jre\lib\ext\...the classes
    Then I copied the code from the example to my jpx project and got an error that it could not connect to the socket. The only thing I changed in the code was the connection string:
    --original string from example:
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://1433", "");
    I was getting an error with the 2 argument version of DriverManager - and the second argument here was empty (properties argument). Here was my connection string:
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Myserver:1433;User=sa;Password=");
    I am only using the 1 argument version of DriverManager. Note that the password=" is blank because my RnD workstation is standalone - no one accesses the sql server except me - so no password. I also left out the last semicolon I noticed. Any suggestions appreciated how I could fix this.
    Thanks
    source of article:
    http://search400.techtarget.com/tip/1,289483,sid3_gci1065992,00.html
    iSeries 400 Tips:
    TIPS & NEWSLETTERS TOPICS SUBMIT A TIP HALL OF FAME
    Search for: in All Tips All search400 Full TargetSearch with Google
    PROGRAMMER
    Sample code: Accessing MS SQL Server database from the iSeries
    Eitan Rosenberg
    09 Mar 2005
    Rating: --- (out of 5)
    Nowadays with the help of Java the iSeries can be integrated with other databases quite easy. This tip shows you how. The code included here uses the free Microsoft driver that can be downloaded from here. (SQL Server 2000 Driver for JDBC Service Pack 3)
    If your SQL server does not include the Northwind Sample Database you can find it here.
    http://www.microsoft.com/downloads/details.aspx?familyid=07287b11-0502-461a-b138-2aa54bfdc03a&displaylang=en
    The download contains the following files:
    msbase.jar
    mssqlserver.jar
    msutil.jar
    Those files needs to be copied to the iSeries directories (/home/r_eitan/ExternalJARs).
    Here's the directory structure (on the iSeries) for this sample:
    /home/r_eitan/ExternalJARs - Microsoft files (msbase.jar,mssqlserver.jar,msutil.jar)
    /home/r_eitan/JdbcTest02 - My code (Main.java,Main.class)
    The Java code
    import java.sql.*;
    import java.io.*;
    class Main {
    * Connect to Microsoft SQL server and download file northWind.products as tab
    * seperated file. (products.txt)
    public static void main(String args[]) {
    try {
    PrintStream outPut = new PrintStream(new BufferedOutputStream(new FileOutputStream("products.txt")));
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    //Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://1433", "");
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Myserver:1433;User=sa;Password=");
    System.out.println("Connection Done");
    connection.setCatalog("northWind");
    String sqlCmdString = "select * from products";
    Statement statement = connection.createStatement();
    ResultSet resultSet = statement.executeQuery(sqlCmdString);
    ResultSetMetaData resultSetMetaData = resultSet.getMetaData();
    int columnCount = resultSetMetaData.getColumnCount();
    // Iterate throught the rows in resultSet and
    // output the columns for each row.
    while (resultSet.next()) {
    for (int index = 1; index <=columnCount; ++index)
    String value;
    switch(resultSetMetaData.getColumnType(index))
    case 2 :
    case 3 :
    value = resultSet.getString(index);
    break;
    default :
    value = """ + resultSet.getString(index) + """;
    break;
    outPut.print(value + (index < columnCount ? "t" : ""));
    outPut.println();
    outPut.close();
    resultSet.close();
    connection.close();
    System.out.println("Done");
    catch (SQLException exception)
    exception.printStackTrace();
    catch (Exception exception)
    exception.printStackTrace();
    --------------------------------------------------------------------------------------------------

    My guess is that the server's host name isn't right. It necessarily (or even usually) the "windows name" of the computer. Try with the numeric IP address instead (type "ipconfig" to see it).
    First aid check list for "connection refused":
    - Check host name in connect string.
    - Check port number in connect string.
    - Try numeric IP address of server host in connect string, in case name server is hosed.
    - Are there any firewalls between client and server blocking the port.
    - Check that the db server is running.
    - Check that the db server is listening to the port. On the server, try: "telnet localhost the-port-number". Or "netstat -an", there should be a listening entry for the port.
    - Try "telnet serverhost the-port-number" from the client, to see if firewalls are blocking it.
    - If "telnet" fails: try it with the numeric ip address.
    - If "telnet" fails: does it fail immediately or after an obvious timeout? How long is the timeout?
    - Does the server respond to "ping serverhost" or "telnet serverhost" or "ssh serverhost"?

  • Upsizing from Access to SQL Server - eek!

    Ok - I've built quite a few dynamic sites using DW and
    Access, but the site
    i'm currently working on requires Microsoft SQL Server for
    the database.
    The site is almost complete and is written in Classic ASP.
    Can anyone point me in the right direction, tutorials, crash
    course, etc to
    get me up to spped with the task?
    Would my ASP code need changing at all?
    Thanks in advance
    Andy

    Hi Joe
    Thanks for the help -
    Andy
    "Joe Makowiec" <[email protected]> wrote in
    message
    news:[email protected]..
    > On 19 Feb 2007 in macromedia.dreamweaver.appdev, Andy
    wrote:
    >
    >> Ok - I've built quite a few dynamic sites using DW
    and Access, but
    >> the site i'm currently working on requires Microsoft
    SQL Server for
    >> the database. The site is almost complete and is
    written in Classic
    >> ASP.
    >>
    >> Can anyone point me in the right direction,
    tutorials, crash course,
    >> etc to get me up to spped with the task?
    >> Would my ASP code need changing at all?
    >
    > As Far As I Know - the only place you'll run into a
    problem is that there
    > are a few differences in SQL between Access and SQL
    Server. There are a
    > number of sites with information:
    >
    >
    http://www.google.com/search?q=differences+access+sql+server
    >
    > The first result (at aspfaq.com) looks good.
    >
    > But you shouldn't have any problem with the ASP code. I
    think you'll
    > like the change from Access to SQL Server.
    >
    > --
    > Joe Makowiec
    >
    http://makowiec.net/
    > Email:
    http://makowiec.net/email.php

  • ODBC errors for Oracle Migration Workbench and SQL Server 2000 on Windows

    Hi all-
    I setup a new ODBC connection for the Oracle 10g Migration Workbench to MS SQL Server 2000 on Windows XP and keep getting the following errors when I try to
    either test the new ODBC connection to MS SQL Server 2000 for use with the Oracle Migration Workbench tool. Goal is to fix these errors so that I can migrate our test SQL Server 2000 databases to Oracle 10g.
    Current configuration
    - Oracle 10.1 Migration Workbench
    - Oracle 10g Database (target)
    - MS SQL Server 2000 (source database)
    -Windows XP
    -ODBC 3.85.1117 driver for Windows XP with SQL Server and Oracle
    Errors:
    I. When I test the ODBC connection:
    Microsoft SQL Server ODBC Driver Version 03.85.1117
    Running connectivity tests...
    Attempting connection
    [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]Specified SQL server not found.
    TESTS FAILED!
    Now here is what has me totally confused:
    I can use the command line ISQL to access the database on the server and IP is all correct and port is available. So I can access the SQL Server database fine it is when I try to setup ODBC that it gives me problems.
    Any tips how to get this ODBC working?
    Thanks
    Ben Prusinski

    1. Jing Jin. If you had READ the post you would have seen that installing later versions is NOT an option.
    2. Not supported does NOT mean does NOT work, as Balmukund pointed out in the referenced thread.  The site that this databases supports is using ASP which is also NOT supported by Microsoft.  As it turns out Balmukund's solution actually turns
    out to be the correct solution.  I installed SS2K and its Service pack 4 on the machine last night.  Good answer Balmukund. as we say in the Navy, "BRAVO ZULU!!"  which means "WELL DONE!!
    3. Tom Li I just posted the question less than 48 hours ago.  My last post was less than 24 hours ago.  I think I have the right to be given the opportunity to determine whether a reply is the answer or not. I understand you don't like unanswered
    posts sitting around for weeks, months or years. (I don't like it either as I have a few that are still unanswered after several years.)  But you should not be showing replies as answers before I even get a chance to see them, much less try them out. 
    You should also not be showing replies as answers which don't address the criteria of the question.  I specifically stated that I had to install SS2K.  I went on to state, "And before anyone asks I need to install this version because that is what
    the customer is using and I need to duplicate their databases."  So the correct answer, if in fact SS2K did not work on Windows 7, would have been a virtual machine answer, as suggested on the thread Balmukund referenced.  So before you mark a reply
    as an answer read the question.
    Edward R. Joell MCSD MCDBA

  • Converting a SQLite database to a SQL Server database

    Hi
    I have a SQLite database. I want to convert it to SQL Sever 2005 database. Can u pls guide me how to do it?
    Imalka

    Hi
    There are several known tools for converting between SQLite database and SQL Server database. I id not check them all but you can get more information on each using Google, and then choose the one that fit your needs
    1. Convert SQL Server DB to SQLite DB
    http://www.codeproject.com/Articles/26932/Convert-SQL-Server-DB-to-SQLite-DB
    Written by, liron.levi, from Israel
    * Open source & free
    2. SQLite Manager 0.8.1
    https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/
    Written by, by lazierthanthou
    * This is Firefox free add-on (I ont think that they publish the source code)
    3. RazorSQL
    http://www.razorsql.com/index.html
    4.  MDB Tools project
    http://mdbtools.sourceforge.net/
    * Open source (LGPLv2) & Free
    5. You can use SSIS to import to/from SQL Server
    [Personal Site] [Blog] [Facebook]

  • Create a visual web part which get data from excel sheet and import it into sql server database in sharepoint 2010 (development)

    Hi,
    I want to create a visual webpart which will read data from excel sheet and import it in to sql server database.(using sharepoint development)
    I want to do it using visual webpart.
    Please help to solve the issue.
    Thanks in advance!
    Regards
    Rajni

    Hi  Rajni,
    Microsoft.Office.Interop.Excel assembly provides class to read excel file data, in your web part solution, reference the assembly, and following blog contains samples about how to read the excel file data,
    and import it to SQL  database.
    1.Create a Visual Web Part Project:Create
    Visual Web Parts in SharePoint 2010
    2.Read the excel workbook by using SPFile class:
    http://alancejacob.blogspot.in/2012/06/read-data-from-excel-file-and-insert-in.html
    http://stackoverflow.com/questions/14496608/read-excel-file-stored-in-sharepoint-document-library
    3.Export the excel workbook to SQL Server:
    http://www.c-sharpcorner.com/UploadFile/99bb20/import-excel-data-to-sql-server-in-Asp-Net/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Developing database views between Oracle and SQL Server tables

    I am on Oracle 10.2, my organization has many SQL Server databases as well and has now made
    SQL server as company standard so many new databases will be developed in SQL Server. It is of course
    not possible to convert all Oracle databases to SQL Server, so a mix environment will exist. Two questions:
    1.     Is it possible to develop database views in Oracle (10g in my case) which join Oracle tables with tables in SQL Server 2008? If yes, how. I have seen some heterogeneous connectivity setup to connect SQL Server to Oracle, but not sure whether it is possible to develop a database view across two databases.
    2.     I know it is not a SQL Server forum, but many DBA’s know both Oracle and SQL Server. Is it possible to develop views in SQL Server (SQL Server 2008 R2 in my case) which join Oracle 10g and SQL Server 2008 tables? I know in SQL Server, there is way to set up linked servers, but do not know whether it is possible to develop views.
    Thanks a lot for your insight.

    You can create views that join local Oracle tables and remote SQL Server tables. I'm pretty sure you can do the reverse as well but I haven't personally done it.
    However, I would be very concerned about the performance you'd get if you created that sort of view. You'd very frequently end up in a situation where Oracle has to pull all the data in the remote table across the database link in order to apply predicates and join the data locally. That could be disastrous from a performance standpoint.
    Justin

  • How I can install and configure dg4odbc to access SQL Server database

    I need to link Oracle database (installed in Solaris) to SQL Server database. How can I install and configure dg4odbc. Is there any step by step tutorial or guide available there.Thanks in advance.

    Hi,
      You can download the DG4ODBC software from either MOS or eDelivery depending which versios you want to install
    For 11.2.0.4 -
    Patch 13390677: 11.2.0.4.0 PATCH SET FOR ORACLE DATABASE SERVER
    - login to My Oracle Support
    - click on 'Patches and Updates'
    - search for patch number 13390677
    - you may need to press the '+' button to see the platform list
    - scroll down the list to and click on the 'Oracle Solaris on SPARC (64-bit)'  option.
    - on the next screen click on the 'Download' option
    - from the list of download files choose -
    p13390677_112040_platform_5of7.zip
    - this is the Gateway media pack and has everything needed for a standalone gateway install.
    - unzip the file and run the installer and choose the gateway you want.
    For 12.1 -
    https://edelivery.oracle.com
    Product Pack – Oracle Database
    Platform – Oracle Solaris on SPARC (64-bit)
    Oracle Database 12c Release 1 (12.1.0.1.0) Media Pack for Oracle Solaris on SPARC (64-bit)
    - then for the gateways download –
    Oracle Database Gateways 12c Release 1 (12.1.0.1.0) for Oracle Solaris on SPARC (64-bit)
    - unzip and run the installer
    Whichever version you decide I recommend you install into a completely separtae ORACLE_HOME from any existing installs as this makes maintenacne easier.
    For the configuration have a look at this note if you have access to My oracle Support -
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install (Doc ID 561033.1)
    If not, then refer to the documentation available from -
    Oracle Database Help Center
    - choose either 12.1 or 11.2 then the 'Information Integration' option.
    You can also install the DG4ODBC on the Windows machine (or any other machine if preferred) and access it from the RDBMS on Solaris.
    Regards,
    Mike

  • How can I develope a native mobile cross platform app that can access an SQL server.

    I would do it in html5 as a web app but I also need to access an SQL server and upload data(text) pictures from the camera and
    geolocation data etc.
    I've developed many web based applications, but this is this first attempt to integrate native device functions AND interact with an SQL database.
    So it would have to be able to use form data  then add a photo and geolocation and send everything to the database.
    A site with examples and/or tutorials would be nice.
    To make things worse, I'd also have to be able to work offline and re-sync when networks connections allow.
    If a native app would be too complex, then I was thinking I might be able to develope an app that gathers data then
    passes the info on to a browser to connect with the database.
    But as much as possible I don't want to have to swing back and forth between a browser and an app.
    Pete

    Here is a page a I bookmarked a while back to use jQUERY to access a php scripts sitting on a server that can then interact with the database in the usual way. This means that you will be able to use DW to create the usual HTML CSS and jQuery to make an interactive app.
    I havn't yet tried this but a quick look over the script looks good. Make sure you use php that sanitizes input.
    http://stackoverflow.com/questions/8246380/adding-a-database-to-jquery-mobile-site
    Let me know how you go.

  • Is it possible to have different authentication mode for SQL Server Database Engine and corresponding SQL Server instance?

    Hi,
    I have installed the x64 SQL Server 2008 R2 Express with default settings and run MBSA 2.3 (using default settings too). It shows three SQL Server instances: MSSQL10_50.SQLEXPRESS, SQLEXPRESS and SQLEXPRESS (32-bit). For the first, authentication
    mode is Windows, for the rest two - mixed. Here https://social.msdn.microsoft.com/Forums/sqlserver/en-US/03e470dc-874d-476d-849b-c805acf5b24d/sql-mbsa-question-on-folder-permission?forum=sqlsecurity question
    about such multiple instances was asked and the answer is that "MSSQL10.TEST_DB
    is the instance ID for the SQL Server Database Engine of the instance, TEST_DB", so in my case, it seems that MSSQL10_50.SQLEXPRESS is the instance ID for SQL Server Database Engine  of the SQLEXPRESS instance.
    I have two questions:
    1) How can it be that SQL Server DB Engine instance has different authentication mode than corresponding SQL Server Instance?
    2) Why 32-bit instance reported although I installed only 64-bit version?
    Also, this https://social.technet.microsoft.com/Forums/security/en-US/6b12c019-eaf0-402c-ab40-51d31dce968f/mbsa-23-reporting-sql-32bt-instance-is-running-in-mixed-mode-when-it-is-set-to-integrated?forum=MBSA question seems to be related to this
    issue, but there is no answer :(.
    Upd: Tried on clean Windows 8 installation and Windows 7 with the same result.

      Because I DO NOT want the three people who will be having access to the production SQL Server to also have access to the primary host ProductionA.  Since I have to allow them to RDC into the box to manage the SQL Server, I figure why not create
    a separate VM for each one of them and they can RDC into those instead.
    Does this make any sense?
    Any tips are greatly appreciated.  The main reason for doing this is because the three people who will be accessing the box, I need to isolate each one of them and at the same time keep them off of the primary ProductionA.
    Thanks for your help.
    M
    Hello M,
    Since you dont want the 3 guys to have access to Production machine A.You can install SQL Server client .By client i mean SQL server management studio(SSMS) on there local desktop and then create login for them in SQL Server.Open port on which your SQL server
    is running for three of the machines so that they can connct.Now with SSMS installed on each machine each can connect to SQL server from there own machine.
    I would also like you to be cautious with giving Sysadmin privilege to all three of them ,first please note down what task they would do and then decide what rights to be provided.
    Your option will also work but you need to create 3 VM for that .Which is more tedious task.
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Maybe you are looking for