How to assign database name to Database type ?

Rshirsagar99Rshirsagar99 INMember ✭✭

I have name of database. Let's name of database is db1.

I want to assign this database name to Database type/

Like : Database dt1 = db1;

It's showing error that string can not be assigned to database type.

Best Answer

Answers

  • Rshirsagar99Rshirsagar99 INMember ✭✭

    Hello @JamesLavery
    Is it possible to create database as follows ,

    Server srv;
    srv = new Server();

                Database db;  
                db = new Database(srv, "db1");  
    

    I hope this will clear my question to you. Please

  • Rshirsagar99Rshirsagar99 INMember ✭✭

    Hello @JamesLavery
    Is it possible to create database as follows ,

    Server srv;
    srv = new Server();

                Database db;  
                db = new Database(srv, "db1");  
    

    I hope this will clear my question to you. Please help me for this query.

Sign In or Register to comment.