search
HomeSoftware TutorialOffice SoftwareHow PowerBuilder 100 establishes a connection with SQL Server

How to connect powerbuiold10 0 to SQLserver

For those who are using PB10 for the first time, they may encounter problems connecting to SQL Server. On the one hand, PB10 no longer has a dedicated MSSQL Server interface; on the other hand, the database management system (DBMS) has also been replaced by a new method from the original "OLE DB". Therefore, there may be some inconveniences in configuring it. Next, I will explain in detail how to use OLE DB to connect to a SQL 2000 database in PB10.

In order to help players who have not passed the level yet, let us learn about the specific puzzle solving methods. During the installation of pb10, choose custom/full mode to install, because the default installation mode will not install the ole db interface. Click next. If you do not have .net installed, do not select the ADO.net.... item in the list. Then click next all the way to complete the installation. This will allow you to play the puzzle game smoothly. I hope the above methods will be helpful to everyone.

In order to help players solve the problem, we can find the OLE Microsoft OLE DB item in the database sketchpad and right-click on it to create a new configuration. In the pop-up configuration window, we can make some specific settings.

profile name: Fill in the configuration file name //Anything can be done

provider: Select the database management system type, here select the "SQLOLEDB" item

data source: server name (not the same as the previous version). You can select from the drop-down list, or fill in the server name or IP address such as: 127.0.0.1, etc. If the provider above is not "SQLOLEDB" there may be no options in this drop-down list.

user ID: user name. My username is the default sa

password: The password corresponding to the user ID above. My password is empty, so I don’t fill it in.

At this point you can successfully connect to the sql server. But which database to connect to? None of the above parameters were specified, and I searched for it for a long time: P. Don't worry, just fill in "database=database name" in Extended. (no quotes)

The final configuration file content is:

// Profile his

SQLCA.DBMS = "OLE DB"

SQLCA.LogId = "sa" //My user name is sa

SQLCA.AutoCommit = False

SQLCA.DBParm = "PROVIDER='SQLOLEDB',DATASOURCE='NETMANAGER',PROVIDERSTRING='database=zs'" //My database name is: zs; the datasource can also be followed by the IP address: DATASOURCE='127.0 .0.1'

This completes the configuration of using OLE DB to connect to sql server under pb10!

(change)

PB connection sql 2000

How can it work if you don’t add connect?

// Profile firstpb

SQLCA.DBMS = "MSS Microsoft SQL Server"

SQLCA.Database = "ERP30JCFZ"

SQLCA.LogPass = '1'

SQLCA.ServerName = "MICROSOF-4FEEC7"

SQLCA.LogId = "sa"

SQLCA.AutoCommit = False

SQLCA.DBParm = """

connect;

connect using sqlca;

Both of the above connections are available, you can use any one

IF sqlca.sqlcode=0 then

open(w_fistpb1)

else

messagebox("System prompt", "Database connection failed")

end if

The above is the detailed content of How PowerBuilder 100 establishes a connection with SQL Server. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:Excel办公网. If there is any infringement, please contact admin@php.cn delete
If You Don't Rename Tables in Excel, Today's the Day to StartIf You Don't Rename Tables in Excel, Today's the Day to StartApr 15, 2025 am 12:58 AM

Quick link Why should tables be named in Excel How to name a table in Excel Excel table naming rules and techniques By default, tables in Excel are named Table1, Table2, Table3, and so on. However, you don't have to stick to these tags. In fact, it would be better if you don't! In this quick guide, I will explain why you should always rename tables in Excel and show you how to do this. Why should tables be named in Excel While it may take some time to develop the habit of naming tables in Excel (if you don't usually do this), the following reasons illustrate today

Microsoft 365 Will Turn Off ActiveX, Because Hackers Keep Using ItMicrosoft 365 Will Turn Off ActiveX, Because Hackers Keep Using ItApr 12, 2025 am 06:01 AM

Microsoft 365 is finally phasing out ActiveX, a long-standing security vulnerability in its Office suite. This follows a similar move in Office 2024. Beginning this month, Windows versions of Word, Excel, PowerPoint, and Visio in Microsoft 365 will

How to Use Excel's AGGREGATE Function to Refine CalculationsHow to Use Excel's AGGREGATE Function to Refine CalculationsApr 12, 2025 am 12:54 AM

Quick Links The AGGREGATE Syntax

How to Use the PIVOTBY Function in ExcelHow to Use the PIVOTBY Function in ExcelApr 11, 2025 am 12:56 AM

Quick Links The PIVOTBY Syntax

How to Format a Spilled Array in ExcelHow to Format a Spilled Array in ExcelApr 10, 2025 pm 12:01 PM

Use formula conditional formatting to handle overflow arrays in Excel Direct formatting of overflow arrays in Excel can cause problems, especially when the data shape or size changes. Formula-based conditional formatting rules allow automatic formatting to be adjusted when data parameters change. Adding a dollar sign ($) before a column reference applies a rule to all rows in the data. In Excel, you can apply direct formatting to the values ​​or background of a cell to make the spreadsheet easier to read. However, when an Excel formula returns a set of values ​​(called overflow arrays), applying direct formatting will cause problems if the size or shape of the data changes. Suppose you have this spreadsheet with overflow results from the PIVOTBY formula,

You Need to Know What the Hash Sign Does in Excel FormulasYou Need to Know What the Hash Sign Does in Excel FormulasApr 08, 2025 am 12:55 AM

Excel Overflow Range Operator (#) enables formulas to be automatically adjusted to accommodate changes in overflow range size. This feature is only available for Microsoft 365 Excel for Windows or Mac. Common functions such as UNIQUE, COUNTIF, and SORTBY can be used in conjunction with overflow range operators to generate dynamic sortable lists. The pound sign (#) in the Excel formula is also called the overflow range operator, which instructs the program to consider all results in the overflow range. Therefore, even if the overflow range increases or decreases, the formula containing # will automatically reflect this change. How to list and sort unique values ​​in Microsoft Excel

How to Create a Timeline Filter in ExcelHow to Create a Timeline Filter in ExcelApr 03, 2025 am 03:51 AM

In Excel, using the timeline filter can display data by time period more efficiently, which is more convenient than using the filter button. The Timeline is a dynamic filtering option that allows you to quickly display data for a single date, month, quarter, or year. Step 1: Convert data to pivot table First, convert the original Excel data into a pivot table. Select any cell in the data table (formatted or not) and click PivotTable on the Insert tab of the ribbon. Related: How to Create Pivot Tables in Microsoft Excel Don't be intimidated by the pivot table! We will teach you basic skills that you can master in minutes. Related Articles In the dialog box, make sure the entire data range is selected (

How to Use the GROUPBY Function in ExcelHow to Use the GROUPBY Function in ExcelApr 02, 2025 am 03:51 AM

Excel's GROUPBY function: Powerful data grouping and aggregation tools Excel's GROUPBY function allows you to group and aggregate data based on specific fields in a data table. It also provides parameters that allow you to sort and filter the data so that you can customize the output to your specific needs. GROUPBY function syntax The GROUPBY function contains eight parameters: =GROUPBY(a,b,c,d,e,f,g,h) Parameters a to c are required: a (row field): A range (one column or multiple columns) containing the value or category to which the data is grouped. b (value): The range of values ​​containing aggregated data (one column or multiple columns).

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment